[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Eric Snow
Eric Snow added the comment: New changeset 090591636c4f03ce06a039079bd7716a5b23631e by Eric Snow in branch 'main': bpo-45020: Freeze os, site, and codecs. (gh-28398) https://github.com/python/cpython/commit/090591636c4f03ce06a039079bd7716a5b23631e --

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Eric Snow
Eric Snow added the comment: On Fri, Sep 17, 2021 at 4:22 PM Guido van Rossum wrote: > BTW, why does the script still run Programs/_freeze_module over all the > modules to be frozen? Isn't that up to the Makefile or its Windows equivalent? Yeah, it used to matter but we probably don't need

[issue45176] Many regtest failures on Windows with non-ASCII account name

2021-09-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, do you think we should also freeze the dependencies > of runpy (so "python -m " also starts faster)? Yes, please. The '-m' load option can be considered core startup functionality. It is often the recommended way to launch command line

[issue45235] argparse does not preserve namespace with subparser defaults

2021-09-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26845 pull_request: https://github.com/python/cpython/pull/28442 ___ Python tracker

[issue45235] argparse does not preserve namespace with subparser defaults

2021-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a6e8db5e8e6780411db749d404715dbe021647c7 by Adam Schwalm in branch 'main': bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420) https://github.com/python/cpython/commit/a6e8db5e8e6780411db749d404715dbe021647c7

[issue45235] argparse does not preserve namespace with subparser defaults

2021-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26846 pull_request: https://github.com/python/cpython/pull/28443 ___ Python tracker ___

[issue45120] Windows cp encodings "UNDEFINED" entries update

2021-09-17 Thread Eryk Sun
Eryk Sun added the comment: Rafael, I was discussing code_page_decode() and code_page_encode() both as an alternative for compatibility with other programs and also to explore how MultiByteToWideChar() and WideCharToMultiByte() work -- particularly to explain best-fit mappings, which do not

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Guido van Rossum
Guido van Rossum added the comment: (Ah, now I recall how the $(srcdir) mechanism works again. Generated files do *not* have a $(srcdir) prefix, since they are generated in the destination directory. Hence the fix for the buildbot failure a few days ago. I take back my skepticism about

[issue42038] Tracemalloc's format() doc contradictory

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset aca0e08c5dcc11a8011697331931cde0b21270f2 by andrei kulakov in branch 'main': bpo-42038: fix description of returned list of lines (GH-27529) https://github.com/python/cpython/commit/aca0e08c5dcc11a8011697331931cde0b21270f2 -- nosy:

[issue42038] Tracemalloc's format() doc contradictory

2021-09-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26838 pull_request: https://github.com/python/cpython/pull/28428 ___ Python tracker

[issue42038] Tracemalloc's format() doc contradictory

2021-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26839 pull_request: https://github.com/python/cpython/pull/28429 ___ Python tracker ___

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-17 Thread Sebastian Berg
Sebastian Berg added the comment: I am still fighting with this (and the issues surrounding it) for NumPy. The main point is that my new DTypes in NumPy are metaclasses that extend the (heap)type struct. That just feels right and matches the structure perfectly, but seems to get awkward

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: The proposed fix seems to be the right one based on my reading of the code. -- keywords: -patch stage: patch review -> ___ Python tracker

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: New changeset e1bdecb6dc7ac33256d5fa875d45634512d2a90e by Brett Cannon in branch '3.10': [3.10] bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435)

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: It would be nice to freeze argparse.py and its dependencies. For command-line tools, startup time is important. -- nosy: +rhettinger ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Guido van Rossum
Guido van Rossum added the comment: > It would be nice to freeze argparse.py and its dependencies. For > command-line tools, startup time is important. I quickly checked, and argparse has at least these dependencies: argparse re enum types operator functools collections keyword reprlib

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

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: Can someone compare the main branch (commit e4044e9f893350b4623677c048d33414a77edf55) to the main branch + PR 28427 patch? You can download the patch from: https://patch-diff.githubusercontent.com/raw/python/cpython/pull/28427.patch How can I build Python

[issue44640] Fix punctuation in isinstance() error message

2021-09-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26841 pull_request: https://github.com/python/cpython/pull/28436 ___ Python tracker

[issue44640] Fix punctuation in isinstance() error message

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f4813388b4506b2fafb0089848c5b11cd503758c by wyz23x2 in branch 'main': bpo-44640: Improve punctuation consistency in isinstance/issubclass error messages (GH-27144) https://github.com/python/cpython/commit/f4813388b4506b2fafb0089848c5b11cd503758c

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +26843 pull_request: https://github.com/python/cpython/pull/28438 ___ Python tracker ___

[issue45178] Support linking unnamed temp files into filesystem on Linux

2021-09-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed title: Support for linking unnamed temporary files into filesystem on Linux -> Support linking unnamed temp files into filesystem on Linux versions: +Python 3.11 ___ Python tracker

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

2021-09-17 Thread neonene
neonene added the comment: > (32-bit: "1.07", 64-bit: "1.14": "higher the slower" wrote neonene) 32-bit and 64-bit are in reverse. I compared b1 and a7 because this can be confirmed by anyone with official binary. If 7% of my patch has little to do with the gap, then I will be happy that

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: New changeset 209b7035f714dcc41df054b0b023e0b955d7e1a2 by Brett Cannon in branch 'main': bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435)

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26842 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28437 ___ Python tracker

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

2021-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26837 pull_request: https://github.com/python/cpython/pull/28427 ___ Python tracker ___

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

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: I created a draft PR to mark functions like Py_INCREF() and Py_IS_TYPE() with __forceinline: PR 28427. -- ___ Python tracker ___

[issue42038] Tracemalloc's format() doc contradictory

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42038] Tracemalloc's format() doc contradictory

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset bba2332303c60d7326f08aa639ff03a6b5d44d04 by Miss Islington (bot) in branch '3.10': bpo-42038: fix description of returned list of lines (GH-27529) (GH-28428) https://github.com/python/cpython/commit/bba2332303c60d7326f08aa639ff03a6b5d44d04

[issue42038] Tracemalloc's format() doc contradictory

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 6302701179c458da637d669d7e88734fabb79cf6 by Miss Islington (bot) in branch '3.9': bpo-42038: fix description of returned list of lines (GH-27529) (GH-28429) https://github.com/python/cpython/commit/6302701179c458da637d669d7e88734fabb79cf6

[issue45200] test_multiprocessing_fork: test_get() fails with timeout

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: When the test hangs, a background Python process starts to use 100% of my CPU. This process is stuck in _thread.start_new_thread(). I opened the process in gdb. (gdb) thread 1 [Switching to thread 1 (Thread 0x7fece33615c0 (LWP 132301))] #0

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Guido van Rossum
Guido van Rossum added the comment: BTW, why does the script still run Programs/_freeze_module over all the modules to be frozen? Isn't that up to the Makefile or its Windows equivalent? -- ___ Python tracker

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +26840 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28435 ___ Python tracker ___

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

2021-09-17 Thread Eryk Sun
Eryk Sun added the comment: In Windows, the C runtime's append mode doesn't use the native file append mode. The CRT just opens the file in read-write mode and seeks to the end, initially and before each write. subprocess.Popen() doesn't implement inheritance of file descriptors, so the

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: I decided that find_spec() saying something wasn't available in a finder made sense even though it was because a zip file no longer existed as the loader would still fail as appropriate. -- resolution: -> fixed stage: patch review -> resolved status:

[issue45198] __set_name__ documentation not clear about its usage with non-descriptor classes

2021-09-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +26844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28439 ___ Python tracker

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26821 pull_request: https://github.com/python/cpython/pull/28409 ___ Python tracker ___

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread miss-islington
miss-islington added the comment: New changeset 98fef200bbfd8adec27799265deb200ab5e4513e by Miss Islington (bot) in branch '3.9': bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404) https://github.com/python/cpython/commit/98fef200bbfd8adec27799265deb200ab5e4513e

[issue45203] Improve specialization stats for LOAD_METHOD and BINARY_SUBSCR

2021-09-17 Thread Ken Jin
Ken Jin added the comment: New changeset 4857e53890408fd5a8ee0e83c0250dd5355b3de3 by Ken Jin in branch 'main': bpo-45203: fix compiler warnings (GH-28357) https://github.com/python/cpython/commit/4857e53890408fd5a8ee0e83c0250dd5355b3de3 -- ___

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: Haha, which you just did. Cool. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26824 pull_request: https://github.com/python/cpython/pull/28412 ___ Python tracker

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0361335b80b435ca3694981b41f8269e390eb892 by Serhiy Storchaka in branch 'main': bpo-45187: Collect test_socket tests using unittest (GH-28317) https://github.com/python/cpython/commit/0361335b80b435ca3694981b41f8269e390eb892 -- nosy:

[issue45219] Expose indexing and other simple operations on dict-keys in internal API

2021-09-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset 064464fc38269e70f7e3a34cb25fc9085ab85782 by Mark Shannon in branch 'main': bpo-45219: Factor dictkey indexing (GH-28389) https://github.com/python/cpython/commit/064464fc38269e70f7e3a34cb25fc9085ab85782 --

[issue45219] Expose indexing and other simple operations on dict-keys in internal API

2021-09-17 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44211] Duplicate '.bmp' key in mimetypes.py, maps to both 'image/bmp' and 'image/x-ms-bmp'

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not clear whether we want to backport this change. -- ___ Python tracker ___ ___

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3ea1c4b66887e7ca920db487f6ffc5f1db3c873f by Miss Islington (bot) in branch '3.9': bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396) (GH-28416)

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26820 pull_request: https://github.com/python/cpython/pull/28408 ___ Python tracker ___

[issue45230] Something wrong when Calculate "3==3 is not True"

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, it is a feature. Python allows you to chain comparison operations, so you can write 0 < x <= 10 which is equivalent to (0 < x) and (x <= 10). And "is" is a comparison operation. So `3==3 is not True` is equivalent to `(3==3) and (3 is not True)`

[issue5846] Deprecate obsolete functions in unittest

2021-09-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: _makeLoader is not deprecated yet, so we might keep this open a little bit more. -- ___ Python tracker ___

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26822 pull_request: https://github.com/python/cpython/pull/28410 ___ Python tracker ___

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-09-17 Thread Alex Grund
Alex Grund added the comment: The changelog wrongfully links to https://bugs.python.org/issue41928 instead of this issue. Also the fix introduced a regression: Trying to copy a directory now raises a FileNotFoundError -- nosy: +Alex Grund ___

[issue45227] Control reaches end of non-void function in specialize.c

2021-09-17 Thread Ken Jin
Ken Jin added the comment: Fixed in https://github.com/python/cpython/commit/4857e53890408fd5a8ee0e83c0250dd5355b3de3. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26826 pull_request: https://github.com/python/cpython/pull/28414 ___ Python tracker ___

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26825 pull_request: https://github.com/python/cpython/pull/28413 ___ Python tracker ___

[issue45162] Remove old deprecated unittest features

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b by Serhiy Storchaka in branch 'main': bpo-45162: Remove many old deprecated unittest features (GH-28268) https://github.com/python/cpython/commit/b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b --

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26828 pull_request: https://github.com/python/cpython/pull/28418 ___ Python tracker ___

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0f4449ecb0d678984b1343d60c070dcb1bd62e56 by Łukasz Langa in branch '3.9': [3.9] bpo-45187: Collect test_socket tests using unittest (GH-28317) (GH-28413) https://github.com/python/cpython/commit/0f4449ecb0d678984b1343d60c070dcb1bd62e56

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +26818 pull_request: https://github.com/python/cpython/pull/28406 ___ Python tracker

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26819 pull_request: https://github.com/python/cpython/pull/28407 ___ Python tracker ___

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 773319545ba60577bc140aa46eac83b360240b7a by Serhiy Storchaka in branch 'main': bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404) https://github.com/python/cpython/commit/773319545ba60577bc140aa46eac83b360240b7a

[issue5846] Deprecate obsolete functions in unittest

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b2b035a949eff1dc54b5bafe2bc9ce72b4d24438 by Serhiy Storchaka in branch 'main': bpo-5846: Fix deprecations for obsolete unittest functions and add tests. (GH-28382)

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread miss-islington
miss-islington added the comment: New changeset 62c74f34e7541cf5c9780661b260c53617291804 by Miss Islington (bot) in branch '3.10': bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404) https://github.com/python/cpython/commit/62c74f34e7541cf5c9780661b260c53617291804

[issue5846] Deprecate obsolete functions in unittest

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.11 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5846] Deprecate obsolete functions in unittest

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

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

2021-09-17 Thread Ken Jin
Ken Jin added the comment: @neonene Thanks for the truly excellent investigation! @Raymond and @Steve, If I understood OP (neonene) properly, changing Py_DECREF to a macro won't get back the entire 7% lost performance in pyperformance. neonene's investigations suggest that the entire eval

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: No, it shouldn't be the default. It never was before (this is a library that we've maintained for 20+ years now) and changing it now would mean that existing applications would stop validating their configuration in the way they did up to now. .ini files are

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 10c3cf78518f4b31e1527c2795694b1bcb092696 by Serhiy Storchaka in branch '3.9': [3.9] bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) (GH-28408)

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: We can add a comment to the effect that "the wait here needs to be longer than the client-side (0.01s)". Since you already merged the change to `main`, it will be easiest to merge the backports as well and add the comment in a follow-up series. --

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ce59ac93626004894c2b291ec599a36cfa9fb0be by Serhiy Storchaka in branch '3.10': [3.10] bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) (GH-28409)

[issue45228] Stack buffer overflow in parsing J1939 network address

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

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: It's no longer possible to build Python from a different directory. Example: git clean -fdx mkdir build cd build/ ../configure --with-pydebug make It fails with: ../Programs/_freeze_module importlib._bootstrap ../Lib/importlib/_bootstrap.py

[issue45227] Control reaches end of non-void function in specialize.c

2021-09-17 Thread Ken Jin
Ken Jin added the comment: Please see https://bugs.python.org/issue45203. A fix is available at https://github.com/python/cpython/pull/28357 or https://github.com/python/cpython/pull/28386. But we're waiting for Windows CI to pass. -- nosy: +kj

[issue45231] make regen-all changes files on Linux

2021-09-17 Thread STINNER Victor
New submission from STINNER Victor : "make regen-frozen" changes PCbuild/_freeze_module.vcxproj and PCbuild/_freeze_module.vcxproj.filters changes files end of line on Linux. I'm working on a fix. When Python is built out of the source free, "make regen-pegen" changes Parser/parser.c and

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: There is also a minor issue, "make regen-frozen" changes the end of line of two PCbuild/ files: see bpo-45231. -- ___ Python tracker ___

[issue45231] make regen-all changes files on Linux

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: See also my PR 28410 which fix Python built out of the source tree. -- ___ Python tracker ___

[issue45231] make regen-all changes files on Linux

2021-09-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +26823 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28411 ___ Python tracker ___

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have merged the backported PRs because they are blockers for my other PR which is a blocker for my other PR which is a blocker for my other PR and several future PRs. -- ___ Python tracker

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread miss-islington
miss-islington added the comment: New changeset 5a5684a14b1417fea27af6b6a89eb7faec7fb80a by Miss Islington (bot) in branch '3.10': bpo-45187: Collect test_socket tests using unittest (GH-28317) https://github.com/python/cpython/commit/5a5684a14b1417fea27af6b6a89eb7faec7fb80a --

[issue45162] Remove old deprecated unittest features

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

[issue45107] Improve LOAD_METHOD specialization

2021-09-17 Thread Ken Jin
Ken Jin added the comment: New changeset 70bed6f9936c811472b376edd93c37bcf8f06f35 by Ken Jin in branch 'main': bpo-45107: Make LOAD_METHOD_CLASS safer and faster, clean up comments (GH-28177) https://github.com/python/cpython/commit/70bed6f9936c811472b376edd93c37bcf8f06f35 --

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset cb07838ab756564988b1ffd23871f1222a832446 by Nikita Sobolev in branch 'main': bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396) https://github.com/python/cpython/commit/cb07838ab756564988b1ffd23871f1222a832446

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26827 pull_request: https://github.com/python/cpython/pull/28416 ___ Python tracker

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

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: > the entire eval function is now too big for PGO on MSVC I don't think that the issue is specific to MSVC. If a function becomes too big, it becomes less efficient for CPU caches. One idea would be to move the least common opcodes into a slow-path, in a

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not have any particular use case. It was a side effect of unification code that uses _PyArg_NoKeywords(). -- ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently regrtest supports two ways of collecting and running tests in module. 1. If the module contains the "test_main" function, regrtest just calls it. This function usually calls run_unittest() with a list of test classes, composed manually, it can

[issue45120] Windows cp encodings "UNDEFINED" entries update

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just to be clear: The Python code page encodings are (mostly) taken from the unicode.org set of mappings (ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/). This is our standards body for such mappings, where possible. In some cases, the Unicode

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26815 pull_request: https://github.com/python/cpython/pull/28403 ___ Python tracker ___

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-17 Thread sbougnoux
sbougnoux added the comment: Thanks for your prompt answer. Don't you think it should be the default? It seems like unneeded precision. Just if you want to check one don't miss a value, but in that case, one can use 'allow_no_value=False'. -- ___

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28404 ___ Python tracker

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Stack buffer overflow in parsing J1939 network address ___ Python tracker ___ ___

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Running omitted tests exposed some real bugs. See issue45212, issue45228. -- ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26817 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28405 ___ Python tracker

[issue45230] Something wrong when Calculate "3==3 is not True"

2021-09-17 Thread Wang Bingchao
New submission from Wang Bingchao <819576...@qq.com>: I use python3.7 python3.6 python2.7, and run the following code: print(3==3 is not True) print(3==3 is True) print(3==2 is not True) print(3==2 is True) I got the same results as follow: True False False False but I don't think it is a

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 28405 contains simple changes for 60 test files. It does not cover files which use complex code for generating list of test classes and running doctests (because there are subtle differences between running doctests with run_doctest() and via

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-09-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks, Steve. I'll pull in main and see how the CI fares. -- ___ Python tracker ___ ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Some tests in test_socket are not run, test.test_ssl.TestEnumerations is not run ___ Python tracker ___

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It can be reproduced when run test.test_socket.J1939Test (omitted in regrtests now, see issue45187) with Address Sanitizer. See for example https://github.com/python/cpython/pull/28317/checks?check_run_id=3625390397. It can be reproduced when run

[issue45232] ascii codec is used by default when LANG is not set

2021-09-17 Thread Olivier Delhomme
New submission from Olivier Delhomme : $ python3 --version Python 3.6.4 Setting LANG to en_US.UTF8 works like a charm $ export LANG=en_US.UTF8 $ python3 Python 3.6.4 (default, Jan 11 2018, 16:45:55) [GCC 4.8.5] on linux Type "help", "copyright", "credits" or "license" for more information.

[issue45233] Allow split key dictionaries with values owned by other objects.

2021-09-17 Thread Mark Shannon
New submission from Mark Shannon : Currently, if a dictionary is split, then the dictionary owns the memory for the values. Unless the values is the unique empty-values array. In order to support lazily created dictionaries for objects (see

  1   2   >