[issue40136] add warning to datetime.replace documentation to not use it for setting tzinfo unless UTC or None

2020-04-01 Thread Paul Ganssle
Paul Ganssle added the comment: That is a specific problem with the third-party library `pytz`, not a standard feature of the datetime module. Using `datetime.replace` is the intended way to set a time zone, see: https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html As of

[issue39983] test.regrtest: test marked as failed (env changed), but no warning: test_multiprocessing_forkserver

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Another example: AMD64 RHEL7 LTO 3.7 "1 test altered the execution environment: test_multiprocessing_spawn" https://buildbot.python.org/all/#/builders/43/builds/138 -- ___ Python tracker

[issue38527] configure script fails to detect "float word ordering" on Solaris

2020-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18635 pull_request: https://github.com/python/cpython/pull/19279 ___ Python tracker ___

[issue38527] configure script fails to detect "float word ordering" on Solaris

2020-04-01 Thread miss-islington
miss-islington added the comment: New changeset 5dd836030e0e399b21ab0865ae0d93934bdb3930 by Arnon Yaari in branch 'master': bpo-38527: fix configure script for Solaris (GH-16845) https://github.com/python/cpython/commit/5dd836030e0e399b21ab0865ae0d93934bdb3930 -- nosy:

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-04-01 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch nosy: +corona10 nosy_count: 2.0 -> 3.0 pull_requests: +18636 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19177 ___ Python tracker

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Petr Viktorin
Petr Viktorin added the comment: Definitely! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40121] socket module missing audit events

2020-04-01 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40121] socket module missing audit events

2020-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18631 pull_request: https://github.com/python/cpython/pull/19275 ___ Python tracker ___

[issue40121] socket module missing audit events

2020-04-01 Thread Steve Dower
Steve Dower added the comment: New changeset 3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699 by Steve Dower in branch 'master': bpo-40121: Fix exception type in test (GH-19267) https://github.com/python/cpython/commit/3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699 --

[issue40132] Mechanism to control who owns package names on PyPI?

2020-04-01 Thread ChrisRands
New submission from ChrisRands : Not sure if this is the right place to mention this (apologies if not). Naturally, package names are unique so when you run `pip install package-name` there is no ambiguity. However, this means that package names are limited and potentially valuable. Already

[issue40121] socket module missing audit events

2020-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18632 pull_request: https://github.com/python/cpython/pull/19276 ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Python 3.7 is not affected: it doesn't have test_shared_memory_across_processes(). -- versions: -Python 3.7 ___ Python tracker ___

[issue40133] Provide additional matchers for unittest.mock

2020-04-01 Thread Diego Elio Pettenò
New submission from Diego Elio Pettenò : The unittest.mock `assert_called_*with*` methods take either literals, or the single `ANY` special matcher (https://docs.python.org/3/library/unittest.mock.html#any) to match any argument. Experience suggests me that it's useful to have more flexible

[issue40130] Remove _PyUnicode_AsKind from private C API

2020-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 17b4733f2ff0a4abc06e8c745755c06fc32942dd by Serhiy Storchaka in branch 'master': bpo-40130: _PyUnicode_AsKind() should not be exported. (GH-19265) https://github.com/python/cpython/commit/17b4733f2ff0a4abc06e8c745755c06fc32942dd --

[issue40130] Remove _PyUnicode_AsKind from private C API

2020-04-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40121] socket module missing audit events

2020-04-01 Thread miss-islington
miss-islington added the comment: New changeset f971c8c0a0fbe1959843179e2811b047001125a0 by Miss Islington (bot) in branch '3.8': bpo-40121: Fix exception type in test (GH-19267) https://github.com/python/cpython/commit/f971c8c0a0fbe1959843179e2811b047001125a0 --

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-04-01 Thread STINNER Victor
New submission from STINNER Victor : Sometimes, I need to run multiprocessing tests multiple times in parallel to attempt to reproduce a race condition. Except that test_shared_memory_across_processes() fails in this case: $ ./python -m test test_multiprocessing_spawn --fail-env-changed -v

[issue40132] Mechanism to control who owns package names on PyPI?

2020-04-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Chris, this is explicitly forbidden in the Terms of use of Pypi and the PEP 451 at https://www.python.org/dev/peps/pep-0541/#invalid-projects: > Invalid projects > A project published on the Package Index meeting ANY of the following is > considered

[issue40134] Inconsistent ANSI escape code handling on Windows 10

2020-04-01 Thread Dave Rove
New submission from Dave Rove : The correct handling of ANSI escape codes by the print() function may or may not be enabled in the Windows 10 command prompt window, depending on previous system calls. The following is quite repeatable. Comment-out the apparently meaningless os.system("")

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: I cannot merge a PR until it completes. It re-runs jobs which are already run as GH Actions. There is another annoying issue with Azure Pipelines. When a job fails randomly for whatever reason, a job cannot be re-run, even if I log in Microsoft Azure.

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread Eryk Sun
Eryk Sun added the comment: > It's more the opposite, if tomorrow we want to encode the status > of a terminated process differently, it will be easier if > os.waitstatus_to_exitcode() is available, no? This new status-to-exitcode function applies to Windows waitpid() only due to a design

[issue40133] Provide additional matchers for unittest.mock

2020-04-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40113] Turtle demo

2020-04-01 Thread Davide Golinelli
Davide Golinelli added the comment: you're absolutely right! I'm so sorry for wasting your time. thanks and regards -- ___ Python tracker ___

[issue40120] Undefined C behavior going beyond end of struct via a [1] arrays.

2020-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK extern "C" only affects mangling of function names. Because of overloading in C++ you can have several functions with the same name, and to distinguish "int abs(int)" from "float abs(float)" the C++ compiler mangles function names, that makes them

[issue31160] Enhance support.reap_children()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > With PR19263 The AIX bots are now red. I know, I saw and I already pushed fixes. > NameError: name 'signal' is not defined Fixed by commit afeaea2d6e346f627b24cc9e84e2986a7266a70e. > 1 test failed again: test_builtin Fixed by commit

[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue, the leak is now fixed and _functools has been fixed. I created bpo-40137: TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented. -- resolution: -> fixed stage: patch review -> resolved status:

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Another minor issue: "assert(PyScanner_Check(self));" and "assert(PyEncoder_Check(self));" were removed by commit 33f15a16d40cb8010a8c758952cbf88d7912ee2d when _json module got a module state. scanner_traverse(), scanner_clear(), encoder_traverse() and

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner @petr.viktorin Looks like benchmark showing very impressive result. Can I submit the patch? -- ___ Python tracker ___

[issue38527] configure script fails to detect "float word ordering" on Solaris

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

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: sys.exit() accepts negative number and values larger than 255. I checked with strace: Python calls Linux exit_group() syscall with the value passed to sys.exit(). But then os.waitid() (waitid, not waitpid!) returns the lower 8-bits of the exit code. In

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-04-01 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- nosy: +phsilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: TODO: * Modify asyncio.unix_events._compute_returncode() to use waitstatus_to_exitcode(): need to update tests. * Modify run_cgi() of http.server to log the exit code rather the exit status: use waitstatus_to_exitcode(). * Modify Tools/scripts/which.py to

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +18633 pull_request: https://github.com/python/cpython/pull/19277 ___ Python tracker

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7c72383f95b0cdedf390726069428d7b69ed2597 by Victor Stinner in branch 'master': bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) https://github.com/python/cpython/commit/7c72383f95b0cdedf390726069428d7b69ed2597 --

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18634 pull_request: https://github.com/python/cpython/pull/19278 ___ Python tracker ___

[issue31160] Enhance support.reap_children()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > Ah - great. Sorry for the noise then. It's not noise, it is useful :-) -- ___ Python tracker ___

[issue31160] Enhance support.reap_children()

2020-04-01 Thread Michael Felt
Michael Felt added the comment: Ah - great. Sorry for the noise then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12735] request full Unicode collation support in std python library

2020-04-01 Thread Matej Cepl
Matej Cepl added the comment: Isn’t this done by the system? It feels like barking at the wrong tree. -- ___ Python tracker ___ ___

[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset eacc07439591c97f69ab4a3d17391b009cd78ae2 by Paulo Henrique Silva in branch 'master': bpo-40071: Fix potential crash in _functoolsmodule.c (GH-19273) https://github.com/python/cpython/commit/eacc07439591c97f69ab4a3d17391b009cd78ae2 --

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: When I designed the FASTCALL calling convention, I experimented a new tp_fastcall slot to PyTypeObject to optimize __call__() method: bpo-29259. Results on the pyperformance benchmark suite were not really convincing and I had technical issues (decide if

[issue40120] Undefined C behavior going beyond end of struct via a [1] arrays.

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: The following C++ code fails to build: --- #ifdef __cplusplus # include #else # include #endif #ifdef __cplusplus extern "C" { #endif typedef struct { int x; int y; char array[]; } mystruct_t; #ifdef __cplusplus } #endif int main() {

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +18637 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19280 ___ Python tracker ___

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 65a796e5272f61b42792d3a8c69686558c1872c5 by Victor Stinner in branch 'master': bpo-40094: Add os.waitstatus_to_exitcode() (GH-19201) https://github.com/python/cpython/commit/65a796e5272f61b42792d3a8c69686558c1872c5 --

[issue40136] add warning to datetime.replace documentation to not use it for setting tzinfo unless UTC or None

2020-04-01 Thread Benedikt Bleimhofer
Benedikt Bleimhofer added the comment: Thx for this really helpful info. After reading the article i switched all my code from using pytz to dateutil.tz. -- ___ Python tracker

[issue33262] Deprecate shlex.split(None) to read from stdin.

2020-04-01 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset 975ac326ffe265e63a103014fd27e9d098fe7548 by Zackery Spytz in branch 'master': bpo-33262: Deprecate passing None for `s` to shlex.split() (GH-6514) https://github.com/python/cpython/commit/975ac326ffe265e63a103014fd27e9d098fe7548 --

[issue40136] add warning to datetime.replace documentation to not use it for setting tzinfo unless UTC or None

2020-04-01 Thread Benedikt Bleimhofer
New submission from Benedikt Bleimhofer : It would probably save some people a lot of time if the documentation of datetime.replace (https://docs.python.org/3/library/datetime.html#datetime.datetime.replace) showed a warning not to use it for setting the timezone on a datetime object or at

[issue39682] pathlib.Path objects can be used as context managers

2020-04-01 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-04-01 Thread STINNER Victor
New submission from STINNER Victor : In bpo-1635741, many C extension modules are converted to PEP 489 multiphase initialization and/or modified to get a module state. Problem: the module state cannot be accessed in some functions, and so some of these changes had to workaround the fact that

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-04-01 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40138] Windows implementation of os.waitpid() truncates the exit status (status << 8)

2020-04-01 Thread STINNER Victor
New submission from STINNER Victor : On Windows, the exit code is a 32-bit value. It may or may not signed depending on the function. Unsigned in the Windows native API: BOOL TerminateProcess(HANDLE hProcess, UINT uExitCode); BOOL GetExitCodeProcess(HANDLE hProcess, LPDWORD lpExitCode);

[issue40120] Undefined C behavior going beyond end of struct via a [1] arrays.

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Modules/hashtable.c and Modules/hashtable.h use a different approach. The variable size data is *not* part of the structure: typedef struct { /* used by _Py_hashtable_t.buckets to link entries */ _Py_slist_item_t _Py_slist_item; Py_uhash_t

[issue40120] Undefined C behavior going beyond end of struct via a [1] arrays.

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > Undefined C behavior going beyond end of struct via a [1] arrays. How is it an undefined C behavior? It works well in practice, no? -- ___ Python tracker

[issue39682] pathlib.Path objects can be used as context managers

2020-04-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39682] pathlib.Path objects can be used as context managers

2020-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 2e6d8b0ccdb6e0d9e98a9a7f9c9edfdf1311 by Barney Gale in branch 'master': bpo-39682: make `pathlib.Path` immutable by removing (undocumented) support for "closing" a path by using it as a context manager (GH-18846)

[issue39682] pathlib.Path objects can be used as context managers

2020-04-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue31160] Enhance support.reap_children()

2020-04-01 Thread Michael Felt
Michael Felt added the comment: I think something is not yet what it needs to be: the bots both finish test with: test_zip_pickle (test.test_builtin.BuiltinTest) ... ok Timeout (0:15:00)! Thread 0x0001 (most recent call first): File

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Petr Viktorin
Petr Viktorin added the comment: > Can I submit the patch? Yes! If you think a patch is ready for review, just submit it. There's not much we can comment on before we see the code :) (I hope that doesn't contradict what your mentor says...) --

[issue40134] Inconsistent ANSI escape code handling on Windows 10

2020-04-01 Thread Paul Moore
Paul Moore added the comment: This works fine for me in Windows terminal, but I see the behaviour described when using the conventional "Command prompt" window. Enabling ANSI codes is handled via SetConsoleMode (see here: https://docs.microsoft.com/en-us/windows/console/setconsolemode). The

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Eryk: > The current waitpid() implementation assumes it's okay to discard the upper 8 > bits of the exit status, which can lose important information. That's a bug which is independent of this issue. > Thus not all abnormal terminations can be identified as

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-01 Thread Brett Cannon
Brett Cannon added the comment: > Is it possible to make Travis CI required and make Azure Pipelines not > required? Yes, but I don't want to to do that as we have had equivalent flakiness issues with Travis which is why it isn't required ATM. The only way to prevent flaky CI from blocking

[issue31160] Enhance support.reap_children()

2020-04-01 Thread Michael Felt
Michael Felt added the comment: With PR19263 The AIX bots are now red. == ERROR: test_input_no_stdout_fileno (test.test_builtin.PtyTests) -- Traceback (most

[issue31160] Enhance support.reap_children()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > I think something is not yet what it needs to be: (...) https://buildbot.python.org/all/#/builders/227/builds/571 build failed but it has my commit 16d75675d2ad2454f6dfbf333c94e6237df36018. Ok, something failed. Please open a new issue. This one is

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-40137: TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented. It tracks code that should be fixed once PEP 573 will be implemented, like _functools and _abc modules. --

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file49020/bench_dict_update.py ___ Python tracker ___ ___ Python-bugs-list

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Dong-hee Na
Dong-hee Na added the comment: +--+---+-+ | Benchmark| master-dict-empty | bpo-37207-dict-empty| +==+===+=+ | bench dict empty | 502 ns| 443 ns:

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file49019/bench_dict_kwnames.py ___ Python tracker ___ ___ Python-bugs-list

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file49018/bench_dict_empty.py ___ Python tracker ___ ___ Python-bugs-list

[issue38527] configure script fails to detect "float word ordering" on Solaris

2020-04-01 Thread miss-islington
miss-islington added the comment: New changeset fc036409226d2c65dad9503854f09b9a39c84f14 by Miss Islington (bot) in branch '3.8': bpo-38527: fix configure script for Solaris (GH-16845) https://github.com/python/cpython/commit/fc036409226d2c65dad9503854f09b9a39c84f14 --

[issue40048] _PyEval_EvalFrameDefault() doesn't reset tstate->frame if _PyCode_InitOpcache() fails

2020-04-01 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39740] Select module fails to build on Solaris 11.4

2020-04-01 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +18638 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19281 ___ Python tracker ___

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : When inspecting keyword parameters in a function call, the keyword is stored as a string and not as a AST node: >>> import ast >>> r = "f(a, xxa = 34, y=23)" >>> node = ast.parse(r) >>> ll = node.body[0].value.keywords[0].arg >>>

[issue40048] _PyEval_EvalFrameDefault() doesn't reset tstate->frame if _PyCode_InitOpcache() fails

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Will prepare a pr soon -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40115] test_asyncio leaked [3, 3, 3] references, sum=9

2020-04-01 Thread Kyle Stanley
Kyle Stanley added the comment: Currently working on addressing this, see bpo-39812. If I can't find a fix by tonight, I'll open a PR to revert it for now so that other regressions don't go undetected in the meantime. -- nosy: +aeros ___ Python

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am preparing more PRs for other nodes that are missing the meta-information as well but will open them in a separate issue. -- ___ Python tracker

[issue40115] test_asyncio leaked [3, 3, 3] references, sum=9

2020-04-01 Thread Kyle Stanley
Kyle Stanley added the comment: I was able to find a fix! Specifically, I think the issue was a subtle problem with test_run_in_executor_cancel: it never properly shuts down the executor prior to closing the event loop. We do this in asyncio.run() (with the loop.shutdown_default_executor()

[issue15140] PEP 384 inconsistent with implementation

2020-04-01 Thread Furkan Onder
Furkan Onder added the comment: It fixed. -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-01 Thread Steve Dower
Steve Dower added the comment: Or we could remove the path filter on GitHub Actions so that all checks run even for doc-only changes? Then they can be marked as required. -- ___ Python tracker

[issue15140] PEP 384 inconsistent with implementation

2020-04-01 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +18640 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19283 ___ Python tracker

[issue12735] request full Unicode collation support in std python library

2020-04-01 Thread Ahmad Azizi
Ahmad Azizi added the comment: No, this is not an OS dependent issue. Python does not use Unicode collation(uses utf-8) for sorting. -- versions: -Python 3.4 ___ Python tracker

[issue39812] Avoid daemon threads in concurrent.futures

2020-04-01 Thread Kyle Stanley
Kyle Stanley added the comment: I attached a PR to bpo-40115 to address the refleak in test_asyncio: PR-19282. -- ___ Python tracker ___

[issue40139] mimetypes module racy

2020-04-01 Thread Uwe Kleine-König
New submission from Uwe Kleine-König : Hello, in a project using aiohttp with Python 3.5 as provided by Debian Stretch (3.5.3) I sometimes see a wrong mimetype assigned to .css files. When trying to create a minimal reproduction recipe a colleage and I came up with: import asyncio

[issue40138] Windows implementation of os.waitpid() truncates the exit status (status << 8)

2020-04-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40140] test_builtin crashes when runned in parallel mode on solaris

2020-04-01 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : test_builting works on serial run 0:00:00 load avg: 2.38 Run tests sequentially 0:00:00 load avg: 2.38 [1/1] test_builtin == Tests result: SUCCESS == 1 test OK. Total duration: 1.3 sec Tests result: SUCCESS but with more then one processes, it crashes

[issue40115] test_asyncio leaked [3, 3, 3] references, sum=9

2020-04-01 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +patch pull_requests: +18639 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19282 ___ Python tracker ___

[issue40140] test_builtin crashes when runned in parallel mode on solaris

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: I modified recently the test: (1) commit 278c1e159c970da6cd6683d18c6211f5118674cc -os.waitpid(pid, 0) +support.wait_process(pid, exitcode=0) (2) commit 16d75675d2ad2454f6dfbf333c94e6237df36018 Close the fd *after* calling

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2020-04-01 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +Anthony Sottile nosy_count: 6.0 -> 7.0 pull_requests: +18644 pull_request: https://github.com/python/cpython/pull/10021 ___ Python tracker

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: See also: "Appendix E. Exit Codes With Special Meanings" section of the Bash documentation https://tldp.org/LDP/abs/html/exitcodes.html -- ___ Python tracker

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread Ben Caller
Ben Caller added the comment: Instead of repeat_10_3 = 'Basic ' + ', ' * (10 ** 3) + simple in the benchmark, try repeat_10_3 = 'Basic ' + ', ' * (10 ** 3) + 'A' -- Added file: https://bugs.python.org/file49022/bench_parser2.py ___ Python

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Ooooh, I see. I didn't measure the performance of the right header. I re-run a benchmark using the HTTP header (repeat=15): header = 'Basic ' + ', ' * 15 + 'A' Now I see a major performance difference. Comparison between master ("ref") and PR 18284

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18650 pull_request: https://github.com/python/cpython/pull/19291 ___ Python tracker

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
Alexander Riccio added the comment: If this patch is merged, and all 7 million (estimated) Python developers update their installation, I calculate that I just saved the PSF 119GB worth of bandwidth costs :) I'll take my 10 cents in the mail please :D --

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18651 pull_request: https://github.com/python/cpython/pull/19292 ___ Python tracker ___

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0b297d4ff1c0e4480ad33acae793fbaf4bf015b4 by Victor Stinner in branch 'master': bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) https://github.com/python/cpython/commit/0b297d4ff1c0e4480ad33acae793fbaf4bf015b4 --

[issue40131] Zipapp example has parameters in the wrong order

2020-04-01 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +18649 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19290 ___ Python tracker

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Can we now close this issue? Or does someone plan to push further optimizations. Maybe new issues can be opened for next optimizations? -- ___ Python tracker

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18653 pull_request: https://github.com/python/cpython/pull/19294 ___ Python tracker ___

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +18652 pull_request: https://github.com/python/cpython/pull/19293 ___ Python tracker

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Hum, right now 3.7 and 3.8 still work because they use a cache: "Cache restored from key: Linux-multissl-openssl-1.1.1d" But I think that the fix should be backported to 3.7 and 3.8 as well. -- nosy: +steve.dower

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread miss-islington
miss-islington added the comment: New changeset 8e069fc2ee19f40ce97e61e880bb409ed415d98c by Miss Islington (bot) in branch '3.7': bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19288) https://github.com/python/cpython/commit/8e069fc2ee19f40ce97e61e880bb409ed415d98c --

  1   2   >