[issue42680] unicode identifiers not accessible or assignable through globals()

2020-12-18 Thread Martin Chase
Martin Chase added the comment: Ah! So then the proper code for me would be e.g.: ``` >>> globals()[unicodedata.normalize("NFKC", "µmeow")] 1e-06 ``` Yes, it's clear when I read https://www.python.org/dev/peps/pep-3131/ that the normalization is going to happen. Is it also worth adding a note

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: The code background highlights really do need to be restored. Readability has been significantly impaired in 3.10. -- nosy: +rhettinger ___ Python tracker _

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 782665885c983e88aac12f7e082485cac2df8007 by Miss Islington (bot) in branch '3.9': bpo-34805: Guarantee that __subclasses__() is in definition order. (GH-23844) (GH-23850) https://github.com/python/cpython/commit/782665885c983e88aac12f7e0824

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2020-12-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2020-12-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: One can use sys.setrecursionlimit to increase allowed recursion depth. But... When I ran code from 3.10.0a3 IDLE editor, something hung. Without touching recursion limit, when I split statement apart into ex = compile("""<300 lines>""", '', 'eval') print(e

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-12-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: https://github.com/python/python-docs-theme/pull/57 is landed. We just need a new release of the package to pypi -- ___ Python tracker __

[issue42672] tkinter/__init__.py raises a NameError if NoDefaultRoot()

2020-12-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue42677] Support comments in argparse fromfile_prefix_chars files

2020-12-18 Thread paul j3
paul j3 added the comment: https://docs.python.org/3/library/argparse.html#customizing-file-parsing in the docs describes how to customize the @file reading. This particular extension handles several strings on a line, but that's not the limit of what you could do. You can also read a file

[issue18140] urlparse, urlsplit confused when password includes fragment (#), query (?)

2020-12-18 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.10 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-lis

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d458d8dab0abaf781c923f80f8eb832d0c683e88 by Miss Islington (bot) in branch '3.9': bpo-42559: Not that getrandbits() is non-negative. (GH-23843) (GH-23851) https://github.com/python/cpython/commit/d458d8dab0abaf781c923f80f8eb832d0c683e88 ---

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread Karl Nelson
Karl Nelson added the comment: I used Detours with trclnk64 to get the following log: ``` 20201218193836960 4332 50.60: trclnk64: 001 GetProcAddress(,) -> 7ffc4ccebef0 20201218193836960 4332 50.60: trclnk64: 001 GetProcAddress(7ffc4ccd,LCMapStringEx) 20201218193836960 4332 50.60: trcl

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread William Pickard
William Pickard added the comment: I was just expecting only detours for LoadLibraryExW (and variants) to find out which dll failed. -- ___ Python tracker ___ ___

[issue42665] Should PyLong_AsLongAndOverflow raise exception on overflow?

2020-12-18 Thread Ganesh Kathiresan
Ganesh Kathiresan added the comment: Hi All, thanks for the input. Yeah, the current behavior makes sense, if overflow exception is needed, we can use PyLong_AsLong. I guess my confusion was from the doc: > set *overflow to 1 or -1, respectively, and return -1; > Returns -1 on error. Use PyE

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread Karl Nelson
Karl Nelson added the comment: The last libraries loaded prior to the failure were... ``` 20201218192451066 20440 50.60: trclnk64: api-ms-win-eventing-provider-l1-1-0.dll [7ffc4c974108 7ffc4c8b7808] 20201218192451066 20440 50.60: trclnk64: EventUnregister0 7ffc4eab37a0 20201218192451066

[issue42470] DeprecationWarning triggers for sequences which happen to be sets as well

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 1e27b57dbc8c1b758e37a531487813aef2d111ca by masklinn in branch 'master': bpo-42470: Do not warn on sequences which are also sets in random.sample() (GH-23665) https://github.com/python/cpython/commit/1e27b57dbc8c1b758e37a531487813aef2d111ca

[issue42470] DeprecationWarning triggers for sequences which happen to be sets as well

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Given that this is rare and that it is a behavior change, I'm only applying this to 3.10. If you think it is essential for 3.9, feel free to reopen and we'll discuss it with the release manager. -- components: +Library (Lib) resolution: -> fixed

[issue42675] Document changes made in bpo-42195

2020-12-18 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +22716 pull_request: https://github.com/python/cpython/pull/23852 ___ Python tracker ___ ___ P

[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-12-18 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +22717 pull_request: https://github.com/python/cpython/pull/23852 ___ Python tracker ___ ___ P

[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Steven, you are the module maintainer. So if you're sure about the current wording, go ahead and close this. -- ___ Python tracker ___ _

[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm willing to give Irit and Jake opportunity to make their case. Particularly if they can demonstrate that I got my facts wrong. I'm going to close the ticket, but if anyone feels strongly enough to respond with a good argument, or better still citations d

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread Eryk Sun
Eryk Sun added the comment: > ImportError: DLL load failed while importing _jpype: > A dynamic link library (DLL) initialization routine failed. With loader snaps enabled for python[_d].exe (i.e. loader debug messages), you can attach a debugger to discover which DLL's init routine is failin

[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Steven D'Aprano
Change by Steven D'Aprano : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

<    1   2