[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2021-12-08 Thread Oleg Iarygin
Oleg Iarygin added the comment: The reporter gave more details (): > Literally this is ok in C++ with Qt: > > float x = 2.3, y = 1.1; > auto p = QPoint(x, y); // QPoint only takes 2 int params.. this works in >

[issue46020] Optimize long_pow for the common case

2021-12-08 Thread Raymond Hettinger
New submission from Raymond Hettinger : The expression 'x * x' is faster than 'x ** 2'. In Python3.10, the speed difference was enormous. Due to ceval optimizations, the difference in Python3.11 is tighter; however, there is still room for improvement. The code for long_pow() doesn't

[issue44170] ShareableList cannot safely handle multibyte utf-8 characters

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've confirmed this issue is still present in 3.11. -- ___ Python tracker ___ ___

[issue44170] ShareableList cannot safely handle multibyte utf-8 characters

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: We classify 'crash' type as seg faults etc, so changing this to 'behavior' type. -- nosy: +andrei.avk type: crash -> behavior ___ Python tracker

[issue44540] venv: activate.bat fails for venv with special characters in PATH

2021-12-08 Thread Eryk Sun
Change by Eryk Sun : Added file: https://bugs.python.org/file50484/deactivate.bat ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44540] venv: activate.bat fails for venv with special characters in PATH

2021-12-08 Thread Eryk Sun
Eryk Sun added the comment: There's no parsing problem with delayed expansion (e.g. "!VAR!" instead of %VAR%) and for loop variables (e.g. "%%a"). The solution is thus to execute in a local scope that enables delayed expansion and command extensions [1]. That's easy enough, but then

[issue14965] super() and property inheritance behavior

2021-12-08 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: I will note, Raymond, that I’ve wanted this for years before discovering this bpo issue, and I found it because you linked it on Twitter. ;) On Wed, Dec 8, 2021 at 19:08 Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > >

[issue14965] super() and property inheritance behavior

2021-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Another thought: Given that this tracker issue has been open for a decade without resolution, we have evidence that this isn't an important problem in practice. Arguably, people have been better off being nudged in another direction toward better

[issue14965] super() and property inheritance behavior

2021-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 from me as well. I don't think this is common or something that should be encouraged. As Andrew points out, "del super().x" doesn't have an obvious meaning and it could be regarded as a code smell. The OP's first example would be an unpleasant API

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-08 Thread Inada Naoki
Inada Naoki added the comment: That's too bad. We can not compare two Unicode by pointer even if both are interned anymore... It was a nice optimization. -- ___ Python tracker

[issue39694] Incorrect dictionary unpacking when calling str.format

2021-12-08 Thread Eric V. Smith
Eric V. Smith added the comment: I concur with Raymond. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39694] Incorrect dictionary unpacking when calling str.format

2021-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO, there is no actual problem being solved here. Instead there is just a concern that something doesn't feel right. Given that there is no problem in practice, I recommend closing this rather than cluttering docs, tests, or the C code for a

[issue34111] python-config breaks when symlinked to another location

2021-12-08 Thread tobik
tobik added the comment: Yes, the bug still exists and all Python versions are affected. We patch them all in FreeBSD Ports: https://cgit.freebsd.org/ports/tree/lang/python36/files/patch-Misc__python-config.sh.in

[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Rahul Gupta
Rahul Gupta added the comment: After looking at this again, I agree with you - the key duplication issue seems to have gone. Thank you for providing this feedback, it is very helpful. -- ___ Python tracker

[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > casting c to a set will remove duplicates and allow faster iteration Sorry, but this doesn't make any sense. The *c* is either *self* or *other*, both of which are instances of Counter which is itself a subclass of dict. So, the input cannot have

[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Rahul Gupta
Change by Rahul Gupta : -- keywords: +patch pull_requests: +28222 stage: -> patch review pull_request: https://github.com/python/cpython/pull/2 ___ Python tracker ___

[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Rahul Gupta
New submission from Rahul Gupta : On lines 725, 737 and 749 there is the following code: '''for c in (self, other) for e in c''' which generates an iterable with all the keys in self and other - casting c to a set will remove duplicates and allow faster iteration - some minor benchmarks I

[issue44289] tarfile.is_tarfile() and tarfile.open() when used with file object may cause tarfile operations to fail

2021-12-08 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44289] tarfile.is_tarfile() and tarfile.open() when used with file object may cause tarfile operations to fail

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: This affects more use cases than just is_tarfile() and getmembers() results. is_tarfile() calls open() which is the root cause of the issue. Calling open() 2+ times will also cause the same issue. In addition to getmembers(), extracting the tar will also

[issue45510] Specialize BINARY_SUBTRACT

2021-12-08 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 5de39f4b412ed5b0f3ed0140c83b2c1f8c707603 by Brandt Bucher in branch 'main': bpo-45510: Check both types when specializing subtraction (GH-29995) https://github.com/python/cpython/commit/5de39f4b412ed5b0f3ed0140c83b2c1f8c707603 --

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-08 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28221 pull_request: https://github.com/python/cpython/pull/29998 ___ Python tracker ___

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-08 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28220 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29997 ___ Python tracker ___

[issue46002] py Launcher for Windows with MSYS2

2021-12-08 Thread Zernoxi
Zernoxi added the comment: True, that would work but it not ideal "Unix". I'll closed this since not unintended behavior. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-08 Thread Steve Dower
New submission from Steve Dower : If a C runtime's math functions set errno to ERANGE, we assume it is a valid underflow if fabs(result) < 1.0. However, because expm1 includes a -1.0, it underflows towards -1.0. This fails the above check, and so if a runtime's expm1() sets ERANGE we will

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-08 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28219 pull_request: https://github.com/python/cpython/pull/29996 ___ Python tracker ___

[issue22282] ipaddress module accepts octal formatted IPv4 addresses in IPv6 addresses

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: This is what I get now on 3.11: >>> ipaddress.ip_address("::1.0.0.00") Traceback (most recent call last): File "", line 1, in File "C:\Users\User\src\cpython\Lib\ipaddress.py", line 54, in ip_address raise ValueError('%r does not appear to be an IPv4

[issue29899] zlib missing when --enable--optimizations option appended

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: Version 3.3 is no longer supported, and it doesn't look like there is enough information here for core devs to understand what happened. I'll close this, but please create a new issue if you are still having this problem with a current version (>= 3.9).

[issue20899] Nested namespace imports do not work inside zip archives

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: I got the same results as Jonathan. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue45510] Specialize BINARY_SUBTRACT

2021-12-08 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +28218 pull_request: https://github.com/python/cpython/pull/29995 ___ Python tracker ___

[issue34111] python-config breaks when symlinked to another location

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: tobik, 3.4/3.5 are no longer maintained. Do you know whether this is impacting current versions (>= 3.9)? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2021-12-08 Thread Oleg Iarygin
Oleg Iarygin added the comment: Here is a report that this change breaks PyQt5 on Fedora: > [...] > > Why do I care? This breaks tons of existing PyQt5 code out there, for > example. I wasn't aware of this change to the

[issue46017] Tutorial incorrectly refers to skits rather than sketches.

2021-12-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: What difference do you believe there is between skits and sketches? Definition 1 of skit: "A short comic performance." https://en.wiktionary.org/wiki/skit#English Definition 4 of sketch: "A brief, light, or unfinished dramatic, musical, or literary work

[issue38884] __import__ is not thread-safe on Python 3

2021-12-08 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Given that the behavior changes between Python 3.2 (no deadlock) and Python 3.3 (deadlock), this should be easily bisectable if someone has the right setup to build and run Python versions from sources in that range. --

[issue39694] Incorrect dictionary unpacking when calling str.format

2021-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In most cases the test is cheap even for large dict (it has constant complexity if the dict never contained non-string keys). -- ___ Python tracker

[issue38884] __import__ is not thread-safe on Python 3

2021-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-12-08 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28217 pull_request: https://github.com/python/cpython/pull/29994 ___ Python tracker ___

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 267539bff700c2493778c07eeb1642b9584c4826 by David CARLIER in branch 'main': bpo-46016: fcntl module add FreeBSD's F_DUP2FD_CLOEXEC flag support (GH-29993) https://github.com/python/cpython/commit/267539bff700c2493778c07eeb1642b9584c4826

[issue46017] Tutorial incorrectly refers to skits rather than sketches.

2021-12-08 Thread Ben Ricketts
New submission from Ben Ricketts : https://docs.python.org/3/tutorial/appetite.html 4th paragraph from bottom refers to "skits" where as Monty Python in fact perform sketch comedy.It is a minor but important differentiation. -- assignee: docs@python components: Documentation

[issue46011] Python 3.10 email returns invalid Date: header unchanged.

2021-12-08 Thread Mark Sapiro
Mark Sapiro added the comment: Upon further research I realized this is related to https://bugs.python.org/issue30681 and that while there are no message.defects the Date: header does have the InvalidDateDefect and its datetime attribute is None so I consider this resolved. --

[issue39694] Incorrect dictionary unpacking when calling str.format

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. >>> x = {None: ''} >>> ''.format(**x) '' >>> '{x}'.format(**x) Traceback (most recent call last): File "", line 1, in KeyError: 'x' -- components: +Library (Lib) nosy: +iritkatriel versions: +Python 3.11 -Python 3.5, Python 3.6,

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2021-12-08 Thread Nathan Jensen
Change by Nathan Jensen : -- nosy: +ndjensen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2021-12-08 Thread Nathan Jensen
Change by Nathan Jensen : -- nosy: +ndjensen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-08 Thread Nathan Jensen
Change by Nathan Jensen : -- nosy: +ndjensen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-08 Thread David CARLIER
New submission from David CARLIER : Exposing these specific freebsd constants to the module. -- ___ Python tracker ___ ___

[issue44377] Truncated error message of original function while multiprocessing or multithreading

2021-12-08 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker ___

[issue10608] [doc] Add a section to Windows FAQ explaining os.symlink

2021-12-08 Thread Eryk Sun
Eryk Sun added the comment: Ingrid's patch misses the requirement to log off after adding a privilege to the current account. A new access token is required, from a fresh logon. Privileges can also be added to groups, not just to individual user accounts. Thus the symlink privilege can be

[issue44377] Truncated error message of original function while multiprocessing or multithreading

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: Prasanth: can you provide a bit more details, are you saying that this line: https://github.com/python/cpython/blob/2109f7880b65755329a877da3a7f8a362de07350/Lib/multiprocessing/pool.py#L86 .. truncates the exception msg? What is the exact exception type that

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: New changeset 2109f7880b65755329a877da3a7f8a362de07350 by Irit Katriel in branch 'main': bpo-45711: Remove unnecessary normalization of exc_info (GH-29922) https://github.com/python/cpython/commit/2109f7880b65755329a877da3a7f8a362de07350 --

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Steve Dower added the comment: New changeset 7778116c2f573edf320bd55301137a968e4339d8 by Steve Dower in branch 'main': bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992) https://github.com/python/cpython/commit/7778116c2f573edf320bd55301137a968e4339d8 --

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-08 Thread David CARLIER
Change by David CARLIER : -- components: FreeBSD nosy: devnexen, koobs priority: normal pull_requests: 28216 severity: normal status: open title: fcntl module add F_DUP2FD_CLOEXEC type: enhancement versions: Python 3.11 ___ Python tracker

[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

2021-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3cb9731b7e59b0df9a7a9ab6b7746a669958b693 by Jacob Hayes in branch 'main': bpo-45359: Support TopologicalSorter type subscript (GH-28714) https://github.com/python/cpython/commit/3cb9731b7e59b0df9a7a9ab6b7746a669958b693 -- nosy:

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: New changeset f893bb2e01307c92ca19597f44874ecaffe7f06f by Irit Katriel in branch 'main': bpo-45635: refactor print_exception() into smaller functions (GH-29981) https://github.com/python/cpython/commit/f893bb2e01307c92ca19597f44874ecaffe7f06f --

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread STINNER Victor
STINNER Victor added the comment: > Py_buffer data = {NULL, NULL}; > The code initializes Py_buffer.buf and Py_buffer.obj as NULL. The remaining > fields are whatever random values happens to be on the C stack. The C language sets other members to 0/NULL with this syntax, no? --

[issue16223] [doc] untokenize returns a string if no encoding token is recognized

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: The doc has been updated by now: "It returns bytes, encoded using the ENCODING token, which is the first token sequence output by tokenize(). If there is no encoding token in the input, it returns a str instead."

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28215 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29992 ___ Python tracker

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread Petr Viktorin
Petr Viktorin added the comment: The current struct is also likely to continue covering most future uses. If we decide to add PyBufferEx functions but continue providing the current ones (with the current struct), most users won't be affected. (But it'll be a bit more work for us than

[issue46013] Confusing period in object.__hash__ doc

2021-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: A line break would look weird. Let's add plain English instead. - including set, frozenset, and dict. __hash__() should return an integer. + including set, frozenset, and dict. The __hash__() method should return an integer. -- nosy:

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread Christian Heimes
Christian Heimes added the comment: The Py_buffer struct has stayed the same for over a decade and since Python 2.6.0 and 3.0.0. It is unlikely that it has to be changed in the near future. -- ___ Python tracker

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2021-12-08 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Steve Dower added the comment: +RM -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
New submission from Steve Dower : Before, a venv would include the DLLs directory in sys.path. Since issue45582, it does not, and so anything that relies on a standard library native module cannot run. -- assignee: steve.dower components: Windows messages: 408033 nosy: paul.moore,

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-12-08 Thread Mark Shannon
Mark Shannon added the comment: New changeset d4363d214097b3fca8b7910c2e0e91c8b0873fb2 by Andrew Svetlov in branch 'main': bpo-45813: Drop redundant assertion from frame.clear() (GH-29990) https://github.com/python/cpython/commit/d4363d214097b3fca8b7910c2e0e91c8b0873fb2 --

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.5, I decided to rename the public "PyMemAllocator" structure to PyMemAllocatorEx when I added a new "calloc" member. C extensions using "PyMemAllocator" fail to build to force developers to set the calloc member. IMO it's unfortunate to have to

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread Christian Heimes
Christian Heimes added the comment: I thought of a version field, too. In the end it is going to cause more work and trouble than it would benefit us. Stack-allocated Py_buffer's are typically initialized with Py_buffer data = {NULL, NULL}; . The code initializes Py_buffer.buf and

[issue19888] Three argument type() super call sets __name__ but not __qualname__

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: This is about documenting a difference between 3.2 and 3.3, so I'm assuming it's no longer relevant. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker

[issue15708] PEP 3121, 384 Refactoring applied to socket module

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a github PR. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.4 ___ Python tracker ___

[issue15673] PEP 3121, 384 Refactoring applied to testcapi module

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a github PR. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.4 ___ Python tracker ___

[issue15389] PEP 3121, 384 refactoring applied to curses module

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a github PR. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.4 ___ Python tracker ___

[issue15390] PEP 3121, 384 refactoring applied to _datetime module

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a github PR. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.7 ___ Python tracker ___

[issue15651] PEP 3121, 384 refactoring applied to elementtree module

2021-12-08 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate status: open -> closed superseder: -> PEP 3121, 384 refactoring applied to elementtree module ___ Python tracker ___

[issue15735] PEP 3121, 384 Refactoring applied to ossaudio module

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a github PR. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.4 ___ Python tracker ___

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread STINNER Victor
STINNER Victor added the comment: Would it make sense to add a "version" member to the structure? It would allow to support an old stable structure for the stable ABI and a new structure with other changes. The problem is how to initalize the version member. On Windows, many structures have

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-08 Thread Chris Webb
Change by Chris Webb : Removed file: https://bugs.python.org/file17945/paths.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46009] sending non-None values makes generator raise StopIteration on next access

2021-12-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue10608] [doc] Add a section to Windows FAQ explaining os.symlink

2021-12-08 Thread Irit Katriel
Change by Irit Katriel : -- title: Add a section to Windows FAQ explaining os.symlink -> [doc] Add a section to Windows FAQ explaining os.symlink type: behavior -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.4, Python 3.5 ___ Python

[issue11385] [doc] TextTestRunner documentation improvements

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: The run method is documented now, but most of the above points are still true. -- assignee: michael.foord -> keywords: +easy nosy: +iritkatriel title: TextTestRunner methods are not documented -> [doc] TextTestRunner documentation improvements

[issue46009] sending non-None values makes generator raise StopIteration on next access

2021-12-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 99c72326d245fb604609a87a51ef1ad0845467b7 by Mark Shannon in branch '3.10': [3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986). (GH-29988)

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread Christian Heimes
Christian Heimes added the comment: After some consideration I also agree with Antoine. The Py_buffer API has been around for a long time without any changes to the Py_buffer struct. It is unlikely that the struct will ever change. I have created a new PR that exposes Py_buffer struct,

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28214 pull_request: https://github.com/python/cpython/pull/29991 ___ Python tracker ___

[issue45420] Python 3.10 final installation failure

2021-12-08 Thread wyz23x2
wyz23x2 added the comment: Problem solved by installing 3.10.1. (Why?) Thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue45840] Improve cross-references in the data model documentation

2021-12-08 Thread Alex Waygood
Change by Alex Waygood : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46014] functools.singledispatch does not support Union types

2021-12-08 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, lukasz.langa, rhettinger versions: -Python 3.7, Python 3.8 ___ Python tracker ___

[issue46014] functools.singledispatch does not support Union types

2021-12-08 Thread Dave Evans
New submission from Dave Evans : It's not currently possible to use `singledispatch` with a function annotated with a Union type, although the desired behaviour is clear. Example: ``` from functools import singledispatch from typing import Union @singledispatch def test(arg):

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pablo, I think https://github.com/python/cpython/pull/29990 should be merged as well before the issue closing. It covers another execution branch. -- resolution: fixed -> status: closed -> open ___ Python

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +28213 pull_request: https://github.com/python/cpython/pull/29990 ___ Python tracker ___

[issue45459] Limited API support for Py_buffer

2021-12-08 Thread Petr Viktorin
Petr Viktorin added the comment: Antoine has a good point. We can freeze the Py_buffer struct. If it needs to be extended in the future, it'll need a new set of functions and names -- and perhaps a versioning scheme. We'll know more about the problem when/if it comes up. --

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: > (Presumably this will land in Python 11 rather than get backported?) I believe so. > it'll feel like end of an era to finally be able to drop that local patch. You should mark the occasion somehow, it's not everyday you say goodbye to a 25 year old patch!

[issue46013] Confusing period in object.__hash__ doc

2021-12-08 Thread JMcB
Change by JMcB : -- keywords: +patch pull_requests: +28212 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29989 ___ Python tracker ___

[issue46013] Confusing period in object.__hash__ doc

2021-12-08 Thread JMcB
New submission from JMcB : At https://docs.python.org/3/reference/datamodel.html#object.__hash__ It says: Called by built-in function hash() and for operations on members of hashed collections including set, frozenset, and dict. __hash__() should return an integer. How it's rendered there,

[issue46012] unittest AsyncConnection not described

2021-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46009] sending non-None values makes generator raise StopIteration on next access

2021-12-08 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +28211 pull_request: https://github.com/python/cpython/pull/29988 ___ Python tracker ___

[issue46009] sending non-None values makes generator raise StopIteration on next access

2021-12-08 Thread Mark Shannon
Mark Shannon added the comment: New changeset 69806b9516dbe092381f3ef884c7c64bb9b8414a by Mark Shannon in branch 'main': bpo-46009: Do not exhaust generator when send() method raises (GH-29986) https://github.com/python/cpython/commit/69806b9516dbe092381f3ef884c7c64bb9b8414a --

[issue46007] [C API] PyUnicode_CHECK_INTERNED() doesn't work in the limited C API

2021-12-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +28210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29987 ___ Python tracker ___

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-08 Thread STINNER Victor
STINNER Victor added the comment: > Should `_PyUnicode_EqualToASCIIId()` support comparing two unicode from > different interpreter? Right now, there still many cases where objects are still shared between two interpreters: * None, True, False singletons * strings from code objects

[issue41692] Deprecate immortal interned strings: PyUnicode_InternImmortal()

2021-12-08 Thread STINNER Victor
STINNER Victor added the comment: I cannot find "PyUnicode_InternImmortal" pattern in the source code of the PyPI top 5000 projects (December 1, 2021). I only found a false positive in frozendict-2.1.1: frozendict/src/3_10/cpython_src/Include/unicodeobject.h: // PyUnicode_InternImmortal()

[issue45855] PyCapsule_Import still using PyImport_ImportModuleNoBlock

2021-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: The main branch has a dozen PyImport_ImportModuleNoBlock() usages. Would you replace them also? -- nosy: +asvetlov versions: +Python 3.11 -Python 3.10 ___ Python tracker

  1   2   >