[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-06-04 Thread Thomas Caswell
Thomas Caswell added the comment: This change also affects PyQt6: Python 3.10.0b2+ (heads/3.10:d0991e2db3, Jun 1 2021, 11:42:08) [GCC 11.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import PyQt6.QtCore >>> PyQt6.QtCore.PYQT_VERSION_STR '6.1.1.dev21

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25132 pull_request: https://github.com/python/cpython/pull/26542 ___ Python tracker ___ ___

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: I bet that this issue is simply a duplicate of bpo-38323, since I can still (easily) reproduce it locally. I fixed the buildbot configuration, so if the bug happens again on Refleak buildbots, at least we should know which test method hangs. If it's not bpo

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Raising this to a release blocker for 3.10.0 beta 3 as it breaks PyQt6 and other projects. -- priority: normal -> release blocker ___ Python tracker

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list maili

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: release blocker -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Eric Snow
Eric Snow added the comment: Thanks Pablo. I'll get this sorted out. Sorry for the pain. -- ___ Python tracker ___ ___ Python-bug

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm landing https://github.com/python/cpython/pull/26542 as a temporary solution meanwhile we decide what to do with PR 26536. -- ___ Python tracker

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f171877ebe276749f31386baed5841ce37cbee2e by Pablo Galindo in branch 'main': bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH-26542) https://github.com/python/cpython/commit/f171877ebe276749f31386baed5841

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +25133 pull_request: https://github.com/python/cpython/pull/26543 ___ Python tracker ___ __

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +25134 pull_request: https://github.com/python/cpython/pull/26544 ___ Python tracker ___ __

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-04 Thread Jesse Silverman
Jesse Silverman added the comment: As Andre noted, it is good in IDLE. I also realize how convenient it is to read the real docs from there. I learned a lot about the state of console programming on Windows, in and out of Python, but I have no problem using IDLE when on Windows. -- _

[issue44186] TimedRotatingFileHandler overwrite log

2021-06-04 Thread Harry
Harry added the comment: This bug seems to come from the fact that the file rollover occurs it removes any files with same name as the destination file. I believe this bug occurs on all "when" options, but the midnight option truncates the filename so only the date so it's much more likely t

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread miss-islington
miss-islington added the comment: New changeset b3c50b29e14d8f089aee3e0980298bfc74cb3ba7 by Miss Islington (bot) in branch '3.9': bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH-26542) https://github.com/python/cpython/commit/b3c50b29e14d8f089aee3e0980298bf

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0d441d2e70e365b5dc517d8ff24a20b97bc4536a by Miss Islington (bot) in branch '3.10': bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH-26542) (GH-26544) https://github.com/python/cpython/commit/0d441d2e70e3

[issue44310] Document that lru_cache uses hard references

2021-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm thinking of a more minimal and targeted edit than what is in the PR. Per the dev guide, we usually word the docs in an affirmative and specific manner (here is what the tool does and an example of how to use it). Recounting a specific debugging ca

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I did the bisection: ff359d735f1a60878975d1c5751bfd2361e84067 is the first bad commit commit ff359d735f1a60878975d1c5751bfd2361e84067 Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> Date: Mon May 31 02:12:27 2021 -0700

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25135 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26545 ___ Python tracker __

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The problem is that this is wrong: https://github.com/python/cpython/blob/f171877ebe276749f31386baed5841ce37cbee2e/Modules/_sqlite/statement.c#L411-L423 1) tp_clear should *not* do anything other than cleaning refs to python objects 2) sqlite3_finalize

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Using the reproducer code by Mike, without this fix: ❯ ./python ../lel.py [1]25344 segmentation fault ./python ../lel.py With this fix: ❯ ./python ../problem.py ❯ echo $? 0 -- ___ Python tracker

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is a simpler reproducer: dest = sqlite.connect(':memory:') def md5sum(t): return dest.create_function("md5", 1, md5sum) x = dest("create table lang (name, first_appeared)") del md5sum, dest

[issue44310] Document that lru_cache uses hard references

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Agreed! I will let the PR to you :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25136 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26547 ___ Python tracker _

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fa106a685c1f199aca5be5c2d0277a14cc9057bd by Pablo Galindo in branch 'main': bpo-44304: Fix crash in the sqlite3 module when the GC clears Statement objects (GH-26545) https://github.com/python/cpython/commit/fa106a685c1f199aca5be5c2d0277

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread miss-islington
miss-islington added the comment: New changeset ad2f3b74b5615aa36a82d1fdbc45bb7468aa1d72 by Miss Islington (bot) in branch '3.10': bpo-44304: Fix crash in the sqlite3 module when the GC clears Statement objects (GH-26545) https://github.com/python/cpython/commit/ad2f3b74b5615aa36a82d1fdbc45b

[issue44304] segmentation fault appeared in python 3.10.0b2

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

[issue44310] Document that lru_cache uses hard references

2021-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: It may useful to link back to @cached_property() for folks wanting method caching tied to the lifespan of an instance rather than actual LRU logic. -- ___ Python tracker ___

[issue44276] Replace if-elif-else structure with match-case (PEP634)

2021-06-04 Thread Kshitiz Arya
Kshitiz Arya added the comment: As Brandt shows us, match-case in its current implementation is not significantly different from an if-else ladder in term of performance, though I still maintain that match-case is much more readable than an if-else ladder. I also agree with Karthikeyan and T

[issue44013] tempfile.TemporaryFile: name of file descriptor cannot be reused in consecutive initialization

2021-06-04 Thread Xiang Zhong
Xiang Zhong added the comment: Dear Mr. Jollans, thanks for your comments and information. I know my usage of tempfile.TemporaryFile() is unusual, technically I “open”ed it twice. The reason I coded them in this way, as a simple illustration, is I want to test/debug some codes of my early wor

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks Mike for the report and reproducer, and Pablo for the fix! -- ___ Python tracker ___ __

<    1   2