[issue45012] DirEntry.stat method should release GIL

2021-08-31 Thread uosiu
Change by uosiu : -- keywords: +patch pull_requests: +26528 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28085 ___ Python tracker ___

[issue45058] Undefined behavior for syntax "except AError or BError:" accepted by interpreter

2021-08-31 Thread kftse
New submission from kftse : Test case: try: raise TypeError() except TypeError or ValueError: print("OK") try: raise ValueError() except TypeError or ValueError: print("OK") Output: (Python 3.9.0) OK OK # seem to eventually lead to segmentation fault elsewhere (Python 3.8.0)

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are few uses of operators "==" and "!=" with None in the stdlib (against more than 8000 uses of "is" and "is not"). It is very uncommon writing, contradicts PEP 8, and is not safe in general. One bug was found -- using "==" instead of assignment

[issue27175] Unpickling Path objects

2021-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I guess the question is: why do people expect Paths to be picklable accross platforms? Is there a particular use case? -- ___ Python tracker

[issue45021] Race condition in thread.py

2021-08-31 Thread 0x0L
0x0L added the comment: In the last reproducing example, one can drop the .result() and just submit the task: we're not waiting on any result explicitly. It's the shutdown of the ProcessPoolExecutor that waits forever for the children to exit. Generally speaking it's probably a bad idea to

[issue45058] Undefined behavior for syntax "except AError or BError:" accepted by interpreter

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get the correct result (a ValueError traceback) in 3.9.6, I get a crash in 3.9.0. It was a bug in 3.9.0 which is now fixed. The syntax is legal. -- nosy: +serhiy.storchaka ___ Python tracker

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > The state doesn't have a refcount, but it is owned by a module object, so > callback_context should own a reference to the module object. Would it be sufficient to hold a reference to the connection object? The connection holds a reference to the

[issue45063] PEP 657 Fine Grained Error Locations: make the traceback less verbose when possible

2021-08-31 Thread STINNER Victor
New submission from STINNER Victor : The PEP 657 introduced ^^^ in tracebacks. It is useful when the error happens on an sub-expression in a long line. Example: File "/home/vstinner/python/main/Lib/ftplib.py", line 462, in retrlines with self.transfercmd(cmd) as conn, \

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26537 pull_request: https://github.com/python/cpython/pull/28094 ___ Python tracker ___

[issue45058] Undefined behavior for syntax "except AError or BError:" accepted by interpreter

2021-08-31 Thread kftse
kftse added the comment: Tested 3.9.6 to have same behavior as 3.8.0. to clarify, I suppose legal merely means syntactically correct, not effect of "except AError or BError:" === "except (AError, BError)" right? -- ___ Python tracker

[issue44991] [sqlite3] cleanup callbacks (GIL handling, naming, ...)

2021-08-31 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26531 pull_request: https://github.com/python/cpython/pull/28088 ___ Python tracker ___

[issue45055] Fresh build on Windows fails the first time for zlib.c

2021-08-31 Thread Eryk Sun
Eryk Sun added the comment: I can't directly reproduce the problem. Does it reproduce reliably for you? My guess would be that there's a file open in "cpython-source-deps-zlib-1.2.11" when get_external.py tries to rename it to "zlib-1.2.11". Maybe an anti-malware scanner or content indexer

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: To reproduce the bug, apply attached os_uname_refcount_bug.patch and call os.uname(): --- $ ./python -c 'import os; os.uname()' (...) Fatal Python error: _PyMem_DebugRawFree: bad ID: Allocated using API '', verified using API 'o' (...) --- --

[issue27175] Unpickling Path objects

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pickling Patch can be useful in multiprocessing, you can pass the Patch argument to function executed in other process. It can also be useful if you save the state of your program and restore it at the next start. In both cases you pickle and unpickle on

[issue27175] Unpickling Path objects

2021-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I understand. Unpickling to PurePath might make enough sense indeed... -- ___ Python tracker ___

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks, good catch! I'll add that after PR 27934 is merged. -- ___ Python tracker ___ ___

[issue27175] Unpickling Path objects

2021-08-31 Thread Antoine Pitrou
Change by Antoine Pitrou : -- type: behavior -> enhancement versions: +Python 3.11 -Python 3.6 ___ Python tracker ___ ___

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset ab8fed88fc602282167f6459b43f2cf0c771f60a by Miss Islington (bot) in branch '3.10': bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)

[issue45064] Raising AttributeError in descriptor decorator causing searching attribute in __mro__

2021-08-31 Thread Mateusz
New submission from Mateusz : A descriptor that is raising AttributeError in __get__() causes that the Python's interpreter continues searching for attributes in __mro__ calling __getattr__() function in inherited classes. Let's take a look for example script with this bug. class A1:

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +26538 pull_request: https://github.com/python/cpython/pull/28095 ___ Python tracker ___ ___

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26530 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28087 ___ Python tracker

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread STINNER Victor
New submission from STINNER Victor : Writing C extensions using directly the C API is error prone. It's easy to add or forget a Py_INCREF or Py_DECREF. Adding Py_DECREF(Py_True) or Py_DECREF(Py_False) by mistake causes a surprising crash at Python exit: --- Debug memory block at address

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-31 Thread Petr Viktorin
Petr Viktorin added the comment: > Would it be sufficient to hold a reference to the connection object? Yes. -- ___ Python tracker ___

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3c65457156d87e55010507d616b4eecb7a02883d by Serhiy Storchaka in branch 'main': bpo-45060: Get rid of few uses of the equality operators with None (GH-28087) https://github.com/python/cpython/commit/3c65457156d87e55010507d616b4eecb7a02883d

[issue44359] test_ftplib fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: aarch64 Fedora Stable Clang 3.10: https://buildbot.python.org/all/#/builders/635/builds/253 0:00:23 load avg: 12.40 [404/427/1] test_ftplib failed (env changed) Warning -- Uncaught thread exception: Exception Exception in thread Thread-34: Traceback (most

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-31 Thread Petr Viktorin
Petr Viktorin added the comment: Here's a gotcha you might not be aware of: `create_callback_context` stashes away a pointer to `state`. I don't think we can prove that the `state` will always outlive the callback_context after it'll become possible to deallocate the module The state

[issue45062] test_asyncio: test_huge_content_recvinto() failed on PPC64LE RHEL8 Refleaks 3.9

2021-08-31 Thread STINNER Victor
Change by STINNER Victor : -- title: test_asyncio: test_huge_content_recvinto() failed -> test_asyncio: test_huge_content_recvinto() failed on PPC64LE RHEL8 Refleaks 3.9 ___ Python tracker

[issue36560] test_functools leaks randomly 1 memory block

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: Recent failure on AMD64 Fedora Rawhide Refleaks 3.x: https://buildbot.python.org/all/#/builders/565/builds/131 test_typing leaked [1, 1, 1] memory blocks, sum=3 (...) 0:46:40 load avg: 0.00 Re-running test_typing in verbose mode test_typing leaked [1, 1, 1]

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : While searching for use the equality operator with None I found the possible use of "==" instead of "=" (assignment) in Lib/idlelib/idle_test/test_macosx.py. for platform, types in ('darwin', alltypes), ('other', nontypes): with

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: There was such bug in CPython stdlib, in the _testcapi module, see commit 310e2d25170a88ef03f6fd31efcc899fe062da2c of bpo-36854: commit 310e2d25170a88ef03f6fd31efcc899fe062da2c Author: Victor Stinner Date: Fri Nov 22 10:58:00 2019 +0100 bpo-36854:

[issue32835] Add documention mentioning that Cygwin isn't fully compatible

2021-08-31 Thread Diana
Diana added the comment: Hi, I've created a pull request for pep 11. https://github.com/python/peps/pull/2065 -- nosy: +DonnaDia ___ Python tracker ___

[issue44991] [sqlite3] cleanup callbacks (GIL handling, naming, ...)

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset 001ef4600f5ab2e1d7825ddbc0f253377c234d7e by Erlend Egeberg Aasland in branch 'main': bpo-44991: Make GIL handling more explicit in `sqlite3` callbacks (GH-27934) https://github.com/python/cpython/commit/001ef4600f5ab2e1d7825ddbc0f253377c234d7e

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-31 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 01dea5f12b31862999217c091399a318f23b460a by Petr Viktorin in branch 'main': bpo-42064: Offset arguments for PyObject_Vectorcall in the _sqlite module (GH-27931) https://github.com/python/cpython/commit/01dea5f12b31862999217c091399a318f23b460a

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26534 pull_request: https://github.com/python/cpython/pull/28091 ___ Python tracker

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26533 pull_request: https://github.com/python/cpython/pull/28090 ___ Python tracker ___

[issue45062] test_asyncio: test_huge_content_recvinto() failed

2021-08-31 Thread STINNER Victor
New submission from STINNER Victor : PPC64LE RHEL8 Refleaks 3.9: https://buildbot.python.org/all/#/builders/482/builds/128 test test_asyncio failed -- Traceback (most recent call last): File

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26535 pull_request: https://github.com/python/cpython/pull/28092 ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: A variant of this problem: bpo-36560 with a leak 1 memory block per iteration. -- ___ Python tracker ___

[issue27175] Unpickling Path objects

2021-08-31 Thread Antony Lee
Antony Lee added the comment: Despite the now well-known security limitations of pickle, it is still used as a simple way (from the user PoV) to exchange arbitrary Python objects (see e.g. https://joblib.readthedocs.io/en/latest/persistence.html). Such objects can sometimes include Paths

[issue45021] Race condition in thread.py

2021-08-31 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45063] PEP 657 Fine Grained Error Locations: make the traceback less verbose when possible

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: I looked at the implementation. It's more complex than what I expected. tb_displayline(): _Py_DisplaySourceLine() returns the source line with the indentation, but then it truncates the indentation. extract_anchors_from_line() includes the indentation if I

[issue27175] Unpickling Path objects

2021-08-31 Thread Antony Lee
Antony Lee added the comment: You are correct as to the meaning of "convert". The alternative approach you suggest would also work, but that seems to go much more against the design of pathlib to me. OTOH I guess it is up to Antoine to rule on that. --

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28086 ___ Python tracker

[issue45021] Race condition in thread.py

2021-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: As the multiprocessing doc says (https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods): """Note that safely forking a multithreaded process is problematic.""" The reproducer is trivially fixed by adding a call to

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26532 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28089 ___ Python tracker ___

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 08767c73b5bf1f28792d5fef7f41d52822a4989f by Zack Kneupper in branch 'main': bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193) https://github.com/python/cpython/commit/08767c73b5bf1f28792d5fef7f41d52822a4989f

[issue45019] Freezing modules has manual steps but could be automated.

2021-08-31 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26536 pull_request: https://github.com/python/cpython/pull/28093 ___ Python tracker ___

[issue36560] test_functools leaks randomly 1 memory block

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: I can see the test_typing issue with this patch: diff --git a/Lib/test/libregrtest/refleak.py b/Lib/test/libregrtest/refleak.py index b94826a5da..49e5f03414 100644 --- a/Lib/test/libregrtest/refleak.py +++ b/Lib/test/libregrtest/refleak.py @@ -124,7 +124,7 @@

[issue45065] test_asyncio failed (env changed) on s390x RHEL8 Refleaks 3.10: RuntimeError('Event loop is closed') in _SSLProtocolTransport.__del__

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: PPC64LE RHEL8 LTO 3.10: https://buildbot.python.org/all/#/builders/680/builds/279 0:01:14 load avg: 8.67 [236/427/1] test_asyncio failed (env changed) (1 min 5 sec) -- running: test_gdb (1 min 2 sec), test_tokenize (47.0 sec) Warning -- Unraisable exception

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset c4c57e5c0eb79795d4fd1d9d8292455567c60070 by Miss Islington (bot) in branch '3.10': bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090) https://github.com/python/cpython/commit/c4c57e5c0eb79795d4fd1d9d8292455567c60070

[issue45063] PEP 657 Fine Grained Error Locations: make the traceback less verbose when possible

2021-08-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > In term of release process, can we change the traceback after Python 3.10.0 > final? Or can we only change it in Python 3.11? I don't follow what you want to change in 3.10.0 final, PEP 657 is for Python 3.11. Can you clarify? --

[issue45039] use ADDOP_LOAD_CONST consistently

2021-08-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26543 pull_request: https://github.com/python/cpython/pull/28100 ___ Python tracker

[issue45039] use ADDOP_LOAD_CONST consistently

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 70ccee418d1f9d34ed15cfe7104221f9cfd27d03 by Irit Katriel in branch 'main': bpo-45039: Consistently use ADDOP_LOAD_CONST in compiler rather than ADDOP_O(c, LOAD_CONST,...) (GH-28015)

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Definitely a typo. Will apply fix and backport. The first import of macosx initializes _tk_type to None. The line in question intends to re-initialize it so that the subsequent assert can only pass if _init_tk_type changes it to something required. Many

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset 337c8adf31c46b688a5f82bcb64dc6f1ad56703d by Miss Islington (bot) in branch '3.10': bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086) https://github.com/python/cpython/commit/337c8adf31c46b688a5f82bcb64dc6f1ad56703d

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +26545 pull_request: https://github.com/python/cpython/pull/28102 ___ Python tracker ___

[issue44188] ThreadPoolExecutor unbalanced semaphore count

2021-08-31 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45066] email parser fails to decode quoted-printable rfc822 message attachemnt

2021-08-31 Thread Diego Ramirez
Change by Diego Ramirez : -- nosy: +DiddiLeija ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4300352000beed22fb525ec45fd331918d206528 by Victor Stinner in branch 'main': bpo-45061: Detect Py_DECREF(Py_True) bug (GH-28089) https://github.com/python/cpython/commit/4300352000beed22fb525ec45fd331918d206528 --

[issue36560] test_functools leaks randomly 1 memory block

2021-08-31 Thread Ken Jin
Ken Jin added the comment: @Victor, with your patch applied, for test_typing (locally, Windows x64): $ ./python -m test test_typing -R 3:20 Different result on every run (race condition maybe?) $ ./python -m test test_typing -R 1:20 Same result as yours on every run. -- nosy: +kj

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +26542 pull_request: https://github.com/python/cpython/pull/28099 ___ Python tracker ___

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 54f100514b02f6628450043e21ccfe39350d7ac7 by Serhiy Storchaka in branch 'main': bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086) https://github.com/python/cpython/commit/54f100514b02f6628450043e21ccfe39350d7ac7 --

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset c1db7598790d037e58cd99c06d5c166433d63322 by Miss Islington (bot) in branch '3.9': bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086) https://github.com/python/cpython/commit/c1db7598790d037e58cd99c06d5c166433d63322 --

[issue45065] test_asyncio failed (env changed) on s390x RHEL8 Refleaks 3.10: RuntimeError('Event loop is closed') in _SSLProtocolTransport.__del__

2021-08-31 Thread STINNER Victor
New submission from STINNER Victor : s390x RHEL8 Refleaks 3.10: https://buildbot.python.org/all/#/builders/669/builds/121 Reformatted output: 0:19:31 load avg: 2.74 [316/427/1] test_asyncio failed (env changed) (14 min 36 sec) -- running: test_statistics (37.6 sec), test_signal (16 min 51

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 888d4cc06b887e77f281ba4d640e281cb4c61b7b by Victor Stinner in branch 'main': bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090) https://github.com/python/cpython/commit/888d4cc06b887e77f281ba4d640e281cb4c61b7b --

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-08-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +26539 pull_request: https://github.com/python/cpython/pull/28096 ___ Python tracker

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9a7ec2fcdee2da9e080ca459d4c240776df72567 by Ken Jin in branch 'main': bpo-44135: [docs] Fix inline markup (GH-28095) https://github.com/python/cpython/commit/9a7ec2fcdee2da9e080ca459d4c240776df72567 --

[issue45063] PEP 657 Fine Grained Error Locations: make the traceback less verbose when possible

2021-08-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Regarding the issue: I understand what you mean but I don't think we should get into suppressing the indicators in special situations. Some people may say that in a line that assigns to a call: x = foo(x) ^^ highlighting foo() is also not

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset 2280bc116301d45efc4d69cea452d272fdcd05b1 by Miss Islington (bot) in branch '3.9': bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102) https://github.com/python/cpython/commit/2280bc116301d45efc4d69cea452d272fdcd05b1 --

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: > If we go in this direction we should add a DeprecationWarning for __str__() > returning not direct str. I saw str subclass being used for translation. Example: class Message(str): """A Message object is a unicode object that can be translated.

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

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

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26546 pull_request: https://github.com/python/cpython/pull/28103 ___ Python tracker ___

[issue45039] use ADDOP_LOAD_CONST consistently

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset ebbd0ac5d8850a1630090c210b2454b4b26c7daa by Miss Islington (bot) in branch '3.10': bpo-45039: Consistently use ADDOP_LOAD_CONST in compiler rather than ADDOP_O(c, LOAD_CONST,...) (GH-28015)

[issue45066] email parser fails to decode quoted-printable rfc822 message attachemnt

2021-08-31 Thread anarcat
anarcat added the comment: looking at email.feedparser.FeedParser._parse_gen(), it looks like this is going to be really hard to fix, because the parser just happily recurses into the sub-part without ever checking the CTE (content-transfer-encoding). that's typically only done on

[issue45055] Fresh build on Windows fails the first time for zlib.c

2021-08-31 Thread Guido van Rossum
Guido van Rossum added the comment: I've seen it a few times. I don't do this that often, but since I've discovered "git worktree" this has occurred to me a few times (can't recall if it was every time, but today wasn't the first). I'm totally happy to be the human in the retry loop. :-)

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset 0f274cb2d78f71073e9d7295df3b9006e7bf1097 by Miss Islington (bot) in branch '3.10': bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102) https://github.com/python/cpython/commit/0f274cb2d78f71073e9d7295df3b9006e7bf1097 --

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: >> Would it be sufficient to hold a reference to the connection object? > > Yes Good, that simplifies things. I'll wait with this until we've resolved PR 27940 though. -- ___ Python tracker

[issue45039] use ADDOP_LOAD_CONST consistently

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

[issue44188] ThreadPoolExecutor unbalanced semaphore count

2021-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: To be clear, this probably doesn't have any actual consequence, since the right number of threads is launched anyway (at least in the example). But it's probably worth making the implementation less quirky (also, the semaphore's internal counter *might*

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 22fe0eb13c3441b71b60aaea0e7fe289a29783da by Terry Jan Reedy in branch 'main': bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102) https://github.com/python/cpython/commit/22fe0eb13c3441b71b60aaea0e7fe289a29783da --

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +26547 pull_request: https://github.com/python/cpython/pull/28104 ___ Python tracker ___

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +26548 pull_request: https://github.com/python/cpython/pull/28105 ___ Python tracker ___

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +26540 pull_request: https://github.com/python/cpython/pull/28097 ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-31 Thread Irit Katriel
Irit Katriel added the comment: Victor - I am also getting a feeling that this may not be a real leak but rather a bug in the refleaks test bookkeeping. It could be a problem with the way _Py_RefTotal is incremented/decremented. -- ___ Python

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +26544 pull_request: https://github.com/python/cpython/pull/28101 ___ Python tracker

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2b76a5322fdf71d62b531fd765085f96f981c244 by Serhiy Storchaka in branch 'main': bpo-45057: Simplify RegressionTestResult (GH-28081) https://github.com/python/cpython/commit/2b76a5322fdf71d62b531fd765085f96f981c244 --

[issue45066] email parser fails to decode quoted-printable rfc822 message attachemnt

2021-08-31 Thread anarcat
New submission from anarcat : If an email message has a message/rfc822 part *and* that part is quoted-printable encoded, Python freaks out. Consider this code: import email.parser import email.policy # python 3.9.2 cannot decode this message, it fails with #

[issue33426] [doc] Behavior of os.path.join does not match documentation

2021-08-31 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45020] Freeze all modules imported during startup.

2021-08-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 31.08.2021 20:14, Brett Cannon wrote: > > Brett Cannon added the comment: > >> set __file__ (and __path__) on frozen modules? > > See https://bugs.python.org/issue21736 The patch on that ticket is straight from PyRun, where the __file__ location is

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5f66ad09ff2c51521e1512888cac84e0cc0907d4 by Łukasz Langa in branch '3.9': bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193) (GH-28094)

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-31 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 51999c960e7fc45feebd629421dec6524a5fc803 by Brandt Bucher in branch 'main': bpo-37596: Clean up the set/frozenset marshalling code (GH-28068) https://github.com/python/cpython/commit/51999c960e7fc45feebd629421dec6524a5fc803 --

[issue45020] Freeze all modules imported during startup.

2021-08-31 Thread Brett Cannon
Brett Cannon added the comment: > set __file__ (and __path__) on frozen modules? See https://bugs.python.org/issue21736 -- ___ Python tracker ___

[issue45055] Fresh build on Windows fails the first time for zlib.c

2021-08-31 Thread Diego Ramirez
Change by Diego Ramirez : -- nosy: +DiddiLeija ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Diego Ramirez
Change by Diego Ramirez : -- nosy: +DiddiLeija ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-08-31 Thread miss-islington
miss-islington added the comment: New changeset 8711b3d0ac89599fcd16edcb107169bb19a00737 by Miss Islington (bot) in branch '3.10': bpo-44135: [docs] Fix inline markup (GH-28095) https://github.com/python/cpython/commit/8711b3d0ac89599fcd16edcb107169bb19a00737 --

[issue44895] refleak test failure in test_exceptions

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: > It could be a problem with the way _Py_RefTotal is incremented/decremented. It can be a cache which is kept alive and then clear the following iteration. See my previous comment: test leaked [-4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4,

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-31 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >