[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2021-09-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm thinking that edit to tp_dealloc was incorrect. The PyClear call should have been replaced (not removed) with the pattern shown in the C APIs docs ( https://docs.python.org/3/extending/newtypes.html?highlight=pyobject_clearw#weak-reference-support

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Ma Lin. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-19 Thread Ma Lin
Ma Lin added the comment: Like OP's benchmark, if convert the inline functions to macros in object.h, the 3.10 branch is 1.03x faster, but still 1.07x slower than 28d28e0~1. @vstinner could you prepare such a PR as a candidate fix. There seem to be two ways to solve it in short-term. 1,

[issue42038] Tracemalloc's format() doc contradictory

2021-09-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue33327] Add a method to move messages to IMAPlib

2021-09-19 Thread Matej Cepl
Matej Cepl added the comment: > Hans-Peter Jansen (frispete) > > imaplib.error: UID command error: BAD [b'Unrecognized UID subcommand'] You missed the fix for https://bugs.python.org/issue6 -- ___ Python tracker

[issue45128] test_multiprocessing_fork fails if run sequentially after test_genericalias and test_logging

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

[issue1170] shlex have problems with parsing unicode

2021-09-19 Thread Matej Cepl
Matej Cepl added the comment: I cannot reproduce it with the current 3.* version. Did anybody reproduce with 3.5? Otherwise, I suggest close this, as a 2.* bug. -- ___ Python tracker

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

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

[issue45243] [sqlite3] add support for changing connection limits

2021-09-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26864 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28463 ___ Python tracker

[issue45243] [sqlite3] add support for changing connection limits

2021-09-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Christian, how about adding an audit event for something like sqlite3.Connection.setlimit()? My initial thought is: yes. -- nosy: +christian.heimes ___ Python tracker

[issue45041] [sqlite3] simplify executescript()

2021-09-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks for reviewing, Pablo! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2021-09-19 Thread miss-islington
miss-islington added the comment: New changeset 41e2a31c13ba73e2c30e9bf0be9417fd17e8ace2 by Miss Islington (bot) in branch '3.9': bpo-30637: Improve the docs of ast.parse regarding differences with compile() (GH-28459)

[issue45128] test_multiprocessing_fork fails if run sequentially after test_genericalias and test_logging

2021-09-19 Thread miss-islington
miss-islington added the comment: New changeset 0e9608680525b120fc8eaad9f1cb2f729a6c22ae by Miss Islington (bot) in branch '3.10': bpo-45128: fixes `test_multiprocessing_fork` mysterious crash (GH-28387) https://github.com/python/cpython/commit/0e9608680525b120fc8eaad9f1cb2f729a6c22ae

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2021-09-19 Thread miss-islington
miss-islington added the comment: New changeset f17c979d909f05916e354ae54c82bff71dbede35 by Miss Islington (bot) in branch '3.10': bpo-30637: Improve the docs of ast.parse regarding differences with compile() (GH-28459)

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I could not reproduce the crash and from the discussion it seems resolved. Is > there anything left here? No, this should be fixed by now. I just forgot to close the issue. Thanks for the ping! -- ___

[issue45041] [sqlite3] simplify executescript()

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a6779715c4d0289acb59a8fd3660ab2e5d486c4b by Erlend Egeberg Aasland in branch 'main': bpo-45041: Simplify `sqlite3.Cursor.executescript()` (GH-28020) https://github.com/python/cpython/commit/a6779715c4d0289acb59a8fd3660ab2e5d486c4b

[issue45040] [sqlite3] optimise transaction control functions

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

[issue45040] [sqlite3] optimise transaction control functions

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 771a5467132f0400d4c987db8ba807f845b655bc by Erlend Egeberg Aasland in branch 'main': bpo-45040: Simplify sqlite3 transaction control functions (GH-28019) https://github.com/python/cpython/commit/771a5467132f0400d4c987db8ba807f845b655bc

[issue45128] test_multiprocessing_fork fails if run sequentially after test_genericalias and test_logging

2021-09-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26863 pull_request: https://github.com/python/cpython/pull/28462 ___ Python tracker

[issue45128] test_multiprocessing_fork fails if run sequentially after test_genericalias and test_logging

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 1d42408495402b06ecae91420735aeff454be6b5 by Nikita Sobolev in branch 'main': bpo-45128: fixes `test_multiprocessing_fork` mysterious crash (GH-28387) https://github.com/python/cpython/commit/1d42408495402b06ecae91420735aeff454be6b5

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2021-09-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +26862 pull_request: https://github.com/python/cpython/pull/28461 ___ Python tracker ___

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2021-09-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +26861 pull_request: https://github.com/python/cpython/pull/28460 ___ Python tracker

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e6d05a4092b4176a30d1d1596585df13c2ab676d by Pablo Galindo Salgado in branch 'main': bpo-30637: Improve the docs of ast.parse regarding differences with compile() (GH-28459)

[issue45243] [sqlite3] add support for changing connection limits

2021-09-19 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : I propose to add wrappers for the SQLite sqlite3_limit() C API. Using this API, it is possible to query and set limits on a connection basis. This will make it easier (and faster) to test various corner cases in the test suite without relying on

[issue34846] Runtime failure with Failed to import site module

2021-09-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue26375] Python 2.7.10 and 3.4.4 hang on imaplib.IMAP4_SSL()

2021-09-19 Thread Irit Katriel
Irit Katriel added the comment: Please create a new issue, with a working reproducer, if this problem exists in a current version. -- resolution: -> out of date stage: test needed -> resolved status: pending -> closed ___ Python tracker

[issue41367] Popen Timeout raised on 3.6 but not on 3.8

2021-09-19 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40413] Py_RunMain() crashes on subsequence call

2021-09-19 Thread Irit Katriel
Irit Katriel added the comment: Is there anything to do on this issue? Gregory, perhaps you could report the crashes you see so they can be evaluated? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2021-09-19 Thread Irit Katriel
Irit Katriel added the comment: I could not reproduce the crash and from the discussion it seems resolved. Is there anything left here? -- nosy: +iritkatriel ___ Python tracker

[issue39190] _result_handler dies on raised exceptions [multiprocessing]

2021-09-19 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue38039] Segfault when pickling dictionary with large pandas dataframes

2021-09-19 Thread Irit Katriel
Irit Katriel added the comment: Have you been able to reproduce this without pandas? If not, have you reported this problem in the pandas but tracker? -- nosy: +iritkatriel ___ Python tracker

[issue36956] Calling "functions" used to implement generators/comps easily cause crash

2021-09-19 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2021-09-19 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___

[issue45237] Python subprocess not honoring append mode for stdout on Windows

2021-09-19 Thread Eryk Sun
Eryk Sun added the comment: There's nothing we could easily change to use the native OS append mode or support inheritance of file descriptors in subprocess. A general solution would be to give up on C file descriptors and CRT functions such as _wopen(), read(), etc, and instead implement

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2021-09-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +26860 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28459 ___ Python tracker

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bedce3538cca3469ac3efc614ef062367cbb2ff1 by Serhiy Storchaka in branch '3.10': [3.10] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28455) https://github.com/python/cpython/commit/bedce3538cca3469ac3efc614ef062367cbb2ff1

[issue44640] Fix punctuation in isinstance() error message

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

[issue45242] test_pdb fails

2021-09-19 Thread Léon Planken
Léon Planken added the comment: (By the way, this was the only test that failed when running `make test` inside the `screen` environment.) -- ___ Python tracker ___

[issue41914] test_pdb fails

2021-09-19 Thread Léon Planken
Léon Planken added the comment: Re-opened as issue 45242 (also identified the culprit) -- nosy: +oliphaunt ___ Python tracker ___

[issue45242] test_pdb fails

2021-09-19 Thread Léon Planken
New submission from Léon Planken : This is a re-opening of issue 41914 (and my first issue, so apologies for any mistakes). Building Python 3.7, I ran into the same issue reported there (only line numbers differ): == FAIL:

[issue45242] test_pdb fails

2021-09-19 Thread Léon Planken
Change by Léon Planken : -- components: Tests nosy: oliphaunt priority: normal severity: normal status: open title: test_pdb fails versions: Python 3.7 ___ Python tracker ___

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, marking as release blocker. PR GH-28232 is merged to 3.10. It should > be cherry-picked for 3.10.0 inclusion. Done! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44640] Fix punctuation in isinstance() error message

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9c23a1ebade19f20c7d6e592a7d0329545a9a746 by Miss Islington (bot) in branch '3.10': bpo-44640: Improve punctuation consistency in isinstance/issubclass error messages (GH-27144) (GH-28436)

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-09-19 Thread Miro Hrončok
Miro Hrončok added the comment: Also Numba is broken: https://bugzilla.redhat.com/show_bug.cgi?id=2005686 -- ___ Python tracker ___

[issue45236] pyperformance fails to build master

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have checked and indeed this has been fixed already. Thanks a lot, Victor for the fix! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue45193] IDLE Show completions pop-up not working on Ubuntu Linux

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > are ready to be cherrypicked into into the 3.10.0 release branch. Once that is done, 'release blocker' can be removed, but issue should remain open for a separate fix for 3.9. Done! I am removing the release blocker and the 3.10, 3.11 version

[issue39549] The reprlib.Repr type should permit the “fillvalue” to be set by the user

2021-09-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45237] Python subprocess not honoring append mode for stdout on Windows

2021-09-19 Thread wolfgang kuehn
wolfgang kuehn added the comment: The second alternative (wrapping the OS handle in a file descriptor) works like a charm, and is the less invasive workaround code-wise. Thanks for the magic, which I must respect as such :-) Still I feel that this is a bug since (a) it shows an unexpected

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-09-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is the subinterpreters work still on hold pending a PEP? I thought that conversions to heap types had been suspended because there is a Steering Council level cost benefit decision. Mostly it seems that everything helps subinterpreters makes code worse

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-09-19 Thread Jun De
Change by Jun De : -- keywords: +patch nosy: +AngstyDuck nosy_count: 1.0 -> 2.0 pull_requests: +26859 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28457 ___ Python tracker

[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I understand what you mean and I sympathize with it, but this is no different to random failures that we get in the other CI. The check is not failing constantly because otherwise no PRs could be merged and that's not what is happening. I

[issue45026] More compact range iterator

2021-09-19 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26858 pull_request: https://github.com/python/cpython/pull/28456 ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a6241773869b80f2b1cac63f26ba646aa808a8db by Serhiy Storchaka in branch 'main': bpo-45229: Fix setUpModule in test_ssl (GH-28454) https://github.com/python/cpython/commit/a6241773869b80f2b1cac63f26ba646aa808a8db --

[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2021-09-19 Thread STINNER Victor
STINNER Victor added the comment: Pablo: > I don't think that's a good idea because then people will simply ignore it. On my PR 28419, I had to re-run the CI 2 or 3 times, it failed multiple times. It prevents to merge a PR whereas the failure is unrelated to the PR. Terry was also affected

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26857 pull_request: https://github.com/python/cpython/pull/28455 ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26856 pull_request: https://github.com/python/cpython/pull/28454 ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 40348acc180580371d25f75f46b27048e35f2435 by Serhiy Storchaka in branch 'main': bpo-45229: Remove test_main in many tests (GH-28405) https://github.com/python/cpython/commit/40348acc180580371d25f75f46b27048e35f2435 --

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2021-09-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2021-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 664448d81f41c5fa971d8523a71b0f19e76cc136 by Serhiy Storchaka in branch 'main': bpo-30856: Update TestResult early, without buffering in _Outcome (GH-28180) https://github.com/python/cpython/commit/664448d81f41c5fa971d8523a71b0f19e76cc136

[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo: would it be possible to make the Address Sanitizer not mandatory on > pull requests, until this libasan race condition is fixed? I don't think that's a good idea because then people will simply ignore it. --

[issue45020] Freeze all modules imported during startup.

2021-09-19 Thread STINNER Victor
STINNER Victor added the comment: runpy startup time matters a lot for "python3 -m module" startup time! In Python 3.10 (bpo-41006 and bpo-41718), I reduced the number of modules imported by runpy: "The runpy module now imports fewer modules. The python3 -m module-name command startup

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-09-19 Thread STINNER Victor
STINNER Victor added the comment: The commit 28d28e053db6b69d91c2dfd579207cd8ccbc39e7 caused a performance regression on Windows which is currently blocking the Python 3.10.0 final release: bpo-45116. Moroever, this issue introduced a incompatible C API change which is not documented in

[issue45238] Fix debug() in IsolatedAsyncioTestCase

2021-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It turned out be more complicated than I expected. We need to keep the even loop after getting exception in debug() for having ability to run doCleanup() etc. The option is to close the even loop in __del__. But we should ensure that it is closed before

[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2021-09-19 Thread STINNER Victor
Change by STINNER Victor : -- title: test_multiprocessing_fork: test_get() fails with timeout -> Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs) ___ Python tracker

[issue45200] test_multiprocessing_fork: test_get() fails with timeout

2021-09-19 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/cpython/pull/28344/checks?check_run_id=3605759743 That's an Address Sanitizer job. Pablo: would it be possible to make the Address Sanitizer not mandatory on pull requests, until this libasan race condition is fixed? --

[issue44841] ZipInfo crashes on filemode

2021-09-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what the issue is here. ZipInfo does not have a filemode attribute, that's why it is not in ZipInfo.__slots__. That said, it might be interesting to add a property to ZipInfo that extracts the file mode from ZipInfo.external_attr. --

[issue45241] python REPL leaks local variables when an exception is thrown

2021-09-19 Thread Ian Henderson
Ian Henderson added the comment: Ah, you're right -- it looks like the 'objs' global is what's keeping these objects alive. Sorry for the noise. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue45241] python REPL leaks local variables when an exception is thrown

2021-09-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd expect that there'd be at least one instance of X alive due to sys.last_value and in particular sys.last_traceback (which has a reference to the stack frame which contains references to local variables). Btw. I cannot reproduce this with Python 3.9.7

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45241] python REPL leaks local variables when an exception is thrown

2021-09-19 Thread Ian Henderson
New submission from Ian Henderson : To reproduce, copy the following code: import gc gc.collect() objs = gc.get_objects() for obj in objs: try: if isinstance(obj, X): print(obj) except NameError: class X: pass def f(): x = X() raise