[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 ___

[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 : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26845 pull_request: https://github.com/python/cpython/pull/28442 ___ 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

[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 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

[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

[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

[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 ___ ___

[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

[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:

[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 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

[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
Change by Brett Cannon : -- pull_requests: +26843 pull_request: https://github.com/python/cpython/pull/28438 ___ Python tracker ___

[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

[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

[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

[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
Change by Brett Cannon : -- keywords: +patch pull_requests: +26840 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28435 ___ 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 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

[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

[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

[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 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 --

[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 ___

[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 Ł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:

[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

[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

[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

[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 ___

[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 ___

[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

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

2021-09-17 Thread wolfgang kuehn
New submission from wolfgang kuehn : On Windows, if you pass an existing file object in append mode to a subprocess, the subprocess does **not** really append to the file: 1. A file object with `Hello World` content is passed to the subprocess 2. The content is erased 3. The subprocess writes

[issue45200] test_multiprocessing_fork: test_get() fails with timeout

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: > I'm able to reproduce the issue in a reliable way using attached bisect10 > file and the command: I'm talking about a Python built with Address Sanitizer: $ ./configure --with-address-sanitizer --without-pymalloc $ make --

[issue45200] test_multiprocessing_fork: test_get() fails with timeout

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: I'm able to reproduce the issue in a reliable way using attached bisect10 file and the command: $ ./python -m test test_multiprocessing_fork --timeout=40 -v --matchfile=bisect10 (...) test_fork (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok

[issue45236] pyperformance fails to build master

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: I think that I just fixed it with: commit 41551ee7e24fb6c58846836d3655dbb212281206 (HEAD -> main, upstream/main) Author: Victor Stinner Date: Fri Sep 17 20:20:43 2021 +0200 bpo-45020: Fix build out of source tree (GH-28410) * Makefile.pre.in:

[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: > If https://bugs.python.org/file50280/310rc2_benchmarks.txt is correct, this > means that we have a 7% slowdown in Windows PGO builds for 3.10, which I > don't think is acceptable. What I understood is that the https://bugs.python.org/msg401743 patch makes

[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: New changeset e4044e9f893350b4623677c048d33414a77edf55 by Victor Stinner in branch 'main': bpo-45116: Py_DEBUG ignores Py_ALWAYS_INLINE (GH-28419) https://github.com/python/cpython/commit/e4044e9f893350b4623677c048d33414a77edf55 --

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

2021-09-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: If https://bugs.python.org/file50280/310rc2_benchmarks.txt is correct, this means that we have a 7% slowdown in Windows PGO builds for 3.10, which I don't think is acceptable. I am marking this as a release blocker until there is some agreement. I

[issue45236] pyperformance fails to build master

2021-09-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : In the main branch, pyperformance fails to build due to something regarding the freeze module: 2021-09-17 00:03:46,170: /home/pablogsal/cpython_cron/Programs/_freeze_module importlib._bootstrap

[issue45027] Allow basicConfig to configure any logger, not just root

2021-09-17 Thread Greg Werbin
Greg Werbin added the comment: > Users certainly don't need an API change to prevent that, should they wish > to. The following simple call will suffice (using 'gnupg' just as an example): > > logging.getLogger('gnupg').setLevel(logging.CRITICAL + 1) This selectively _disables_ a logger.

[issue45231] make regen-all changes files on Linux

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

[issue45120] Windows cp encodings "UNDEFINED" entries update

2021-09-17 Thread Rafael Belo
Rafael Belo added the comment: Eryk Regarding the codecsmodule.c i don't really know its inner workings and how it is connected to other modules, and as of it, changes on that level for this use case are not critical. But it is nice to think and evaluate on that level too, since there

[issue42389] test_multiprocessing: @requires_hashdigest() prevents test discovery

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue45042. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Many multiprocessing tests are silently skipped since 3.9 ___ Python tracker

[issue45200] test_multiprocessing_fork: test_get() fails with timeout

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: Sometimes, WithProcessesTestProcess.test_error_on_stdio_flush_1() hangs. -- ___ Python tracker ___

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6c50f23ae085ec66f320a26a3f0a6c60d7f2b29d by Miss Islington (bot) in branch '3.9': bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest (GH-28422) (GH-28424)

[issue14408] Support ./python -m unittest in test_socket

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It has been done in issue45187. The problem with reaping threads was solved by using setUpModule() and addModuleCleanup(). Matt's patch contains also replacing calls of concrete class __init__s with using super(). It can be applied. -- nosy:

[issue42560] Improve Tkinter Documentation

2021-09-17 Thread E. Paine
E. Paine added the comment: > Thoughts Is it possible to make non-widget specific methods more obvious (the first one that caught my eye was bind_class)? I'm thinking something like using italic with a key at the top noting that is what it means. I like the 'aka' thing, though. Thanks

[issue16968] Fix test discovery for test_concurrent_futures.py

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_concurrent_futures was made discoverable by Victor Stinner in issue37421. It used tearDownModule() to run threading_cleanup() and reap_children(). -- status: open -> pending ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread Eric Snow
Eric Snow added the comment: Thanks for fixing that, Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38063] Modify test_socket.py to use unittest test discovery

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I has merged similar PR in issue45187. Although it required to fix some existing bugs first. -- nosy: +serhiy.storchaka ___ Python tracker

[issue45036] turtle.onrelease() event doesn't get triggered sometimes

2021-09-17 Thread E. Paine
E. Paine added the comment: > Sometimes it doesn't pendown when I drag Sorry, I can't think why this would be. Maybe ask on Stack Overflow? For now, though, I doubt it's a bug with turtle so IMO this issue should be closed. -- ___ Python tracker

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread miss-islington
miss-islington added the comment: New changeset 21711d53411e0da5976a9af591cd6ca97033f712 by Miss Islington (bot) in branch '3.10': bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest (GH-28422)

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zachary, I almost forgot about that issue. The goal of this issue is to make regrtests using test discovery instead of manually composed lists of test classes. Of course it requires that tests should be discoverable. And most of them already

[issue45200] test_multiprocessing_fork failws with timeout

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: test_multiprocessing_fork also failed on the GitHub Action "Address sanitizer" job: https://github.com/python/cpython/pull/28419 test_get (test.test_multiprocessing_fork.WithProcessesTestQueue) ... Timeout (0:20:00)! Thread 0x7f732679bbc0 (most recent

[issue45200] test_multiprocessing_fork: test_get() fails with timeout

2021-09-17 Thread STINNER Victor
Change by STINNER Victor : -- title: test_multiprocessing_fork failws with timeout -> test_multiprocessing_fork: test_get() fails with timeout ___ Python tracker ___

[issue45187] Some tests in test_socket are not run

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

[issue45187] Some tests in test_socket are not run

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

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 51ebb7f4f5e9bdcf8279a1d91be9569706f6bead by Serhiy Storchaka in branch 'main': bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest (GH-28422)

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2021-09-17 Thread Dan Snider
Dan Snider added the comment: On Android, if os.close_range closes the file descriptor of the scandir iterator, the interpreter immediately crashes eg: >>> import os >>> os.scandir() >>> os.closerange(3,) fdsan: attempted to close file descriptor 3, expected to be unowned, actually

[issue43232] Prohibit previously deprecated operations on asyncio.trsock.TransportSocket

2021-09-17 Thread John Snow
John Snow added the comment: Without sendmsg(), is there any other way to send SCM_RIGHTS ancillary messages over an asyncio-managed UNIX socket? (Is there a better place to discuss this? Kindly point me in the right direction if so.) -- nosy: +jnsnow

[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: Raymond: "Please do as Steve asked and revert back to the previous stable, reliable code." Is this issue really about Py_INCREF() being a static inline macro? Or is it more about the increased size of the _PyEval_EvalFrameDefault() function? neonene's

[issue45187] Some tests in test_socket are not run

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

[issue45020] Freeze all modules imported during startup.

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 41551ee7e24fb6c58846836d3655dbb212281206 by Victor Stinner in branch 'main': bpo-45020: Fix build out of source tree (GH-28410) https://github.com/python/cpython/commit/41551ee7e24fb6c58846836d3655dbb212281206 --

[issue45231] make regen-all changes files on Linux

2021-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset c5a677da9e7b2b2aa43b0b6dfb3813c0212379c0 by Victor Stinner in branch 'main': bpo-45231: update_file.py preserves end of line (GH-28411) https://github.com/python/cpython/commit/c5a677da9e7b2b2aa43b0b6dfb3813c0212379c0 --

[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: > How severe is the regression? OP provided pyperformance of current 3.10 vs their patched version at https://bugs.python.org/file50280/310rc2_benchmarks.txt. The patch is at https://bugs.python.org/msg401743. -- ___

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

2021-09-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, should this be a release blocker? How severe is the regression? If is severe enough we can mark it as a release blocker, but a conclusion needs to be reached ASAP because I don't want to change a fundamental macro a few days before the

[issue45103] IDLE: make configdialog font page survive font failures

2021-09-17 Thread E. Paine
E. Paine added the comment: https://core.tcl-lang.org/tk/tktview/0338867c742 IMO this should be closed as third-party, since there is very little we can / should do (yes we could remove the offending characters from the preview if the user has the font installed, but this is a lot of extra

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

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FWIW: Back in the days of Python 1.5.2, the ceval loop was too big for CPU caches as well and one of the things I experimented with at the time was rearranging the opcodes based on how often they were used and splitting the whole switch statement we had

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

2021-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Pablo, should this be a release blocker? -- nosy: +lemburg, pablogsal ___ Python tracker ___

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

2021-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Right now, I'm not sure. The heuristic to decide > if a function is inlined or not seems to depend > a lot on the compiler and the compiler options. That is exactly correct. And it is why we should use the macro form which is certain to be inlined.

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

2021-09-17 Thread Eryk Sun
Eryk Sun added the comment: Python 3.7+ doesn't need to explicitly enable UTF-8 mode in this case on POSIX systems. If the locale encoding is the "POSIX" or "C" locale, and "C" locale coercion is not disabled via LC_ALL or PYTHONCOERCECLOCALE=0, the interpreter tries to coerce the LC_CTYPE

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: Alex: thanks for the report! I've added a PR that should fix this. -- ___ Python tracker ___

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-17 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 1.0 -> 2.0 pull_requests: +26833 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28421 ___ Python tracker

[issue45235] argparse does not preserve namespace with subparser defaults

2021-09-17 Thread Adam Schwalm
Change by Adam Schwalm : -- keywords: +patch pull_requests: +26832 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28420 ___ Python tracker ___

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

2021-09-17 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45235] argparse does not preserve namespace with subparser defaults

2021-09-17 Thread Adam Schwalm
New submission from Adam Schwalm : The following snippet demonstrates the problem. If a subparser flag has a default set, argparse will override the existing value in the provided 'namespace' if the flag does not appear (e.g., if the default is used): import argparse parser =

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

2021-09-17 Thread Olivier Delhomme
Olivier Delhomme added the comment: >> Hi Marc-Andre, >> >> Please note that setting PYTHONUTF8 with "export PYTHONUTF8=1": >> >> * Is external to the program and user dependent >> * It does not seems to work on my use case: >> >>$ unset LANG >>$ export PYTHONUTF8=1 >>$ python3 >>

[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: +26831 pull_request: https://github.com/python/cpython/pull/28419 ___ Python tracker ___

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

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.09.2021 15:45, Olivier Delhomme wrote: > > Olivier Delhomme added the comment: > > Hi Marc-Andre, > > Please note that setting PYTHONUTF8 with "export PYTHONUTF8=1": > > * Is external to the program and user dependent > * It does not seems to

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-17 Thread Alex Grund
New submission from Alex Grund : After https://bugs.python.org/issue43219 was resolved the function now shows faulty behavior when the source is a directory: `copy_file('/path/to/dir', '/target')` throws a FileNotFoundError while previously it was a IsADirectoryError which is clearly

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: Oh, and I see now Serhiy has proposed a change that looks reasonable. -- ___ Python tracker ___

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: >> Subclass of set can now define > Is there any use case for this? Is your concern about a use-case for the general concept or for set specifically? I appreciate that Serhiy has taken the time to evaluate the specific concern I raised and extrapolate it

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

2021-09-17 Thread Olivier Delhomme
Olivier Delhomme added the comment: Hi Marc-Andre, Please note that setting PYTHONUTF8 with "export PYTHONUTF8=1": * Is external to the program and user dependent * It does not seems to work on my use case: $ unset LANG $ export PYTHONUTF8=1 $ python3 Python 3.6.4 (default, Jan 11

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Zachary Ware
Zachary Ware added the comment: See also bpo-16748 -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2021-09-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 nosy_count: 8.0 -> 9.0 pull_requests: +26830 pull_request: https://github.com/python/cpython/pull/28271 ___ Python tracker ___

[issue45187] Some tests in test_socket are not run

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> 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 : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 54a1760cde7bb01e5574734c389c0746762218fd by Serhiy Storchaka in branch 'main': bpo-45212: Add a comment for time.sleep() in tests (GH-28414) https://github.com/python/cpython/commit/54a1760cde7bb01e5574734c389c0746762218fd --

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

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yes, this is intended. ASCII is used as fallback in case Python cannot determine the I/O encoding to use during startup. This is also the reason why later changes to the environment have no affect on this - the determination of the encoding has already

[issue10611] sys.exit() in a test causes a test run to die

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -26829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-09-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the patch, Nikita! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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 a10726d3141d8f52a108c4daf70eefa29401e2fc by Miss Islington (bot) in branch '3.10': bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396) (GH-28418)

[issue10611] sys.exit() in a test causes a test run to die

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 4.0 -> 5.0 pull_requests: +26829 pull_request: https://github.com/python/cpython/pull/28180 ___ Python tracker

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

2021-09-17 Thread Mark Shannon
Mark Shannon added the comment: An alternative placement for the flag bits: Stride bits in the dictkeys. Ownership bits in the low bits of ma_used. This would still allow us to remove the version tag at some point. -- ___ Python tracker

[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   >