[issue40124] Clearer assertion error

2020-04-01 Thread SilentGhost
Change by SilentGhost : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40148] Add PurePath.with_stem()

2020-04-01 Thread SilentGhost
Change by SilentGhost : -- nosy: +pitrou type: -> enhancement versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue28029] Replace and empty strings

2020-04-01 Thread Glenn Linderman
Glenn Linderman added the comment: Nope: I guess for x.replace( a, b, c ) the workaround would be x.replace( a, b, c ) if x else x.replace( a, b ) -- ___ Python tracker

[issue28029] Replace and empty strings

2020-04-01 Thread Glenn Linderman
Glenn Linderman added the comment: Thanks Stèphańe and Serhiy, I just discovered this strange behavior in 3.8, and wondered how my logic was wrong, until I pinpointed the inconsistent behaviour of str.replace with an empty first parameter and replace count of 1. Glad to see it is fixed in

[issue40083] No run option available in python idle in version 3.8.2

2020-04-01 Thread Rajesh R Naik
Rajesh R Naik added the comment: i thought this issue is with windows home edition please confirm and resolve -- ___ Python tracker ___

[issue40144] resource: RLIMIT_xxx and RUSAGE_xxx constants are missing on macOS 10.15.4

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

[issue40124] Clearer assertion error

2020-04-01 Thread Kyle Stanley
Kyle Stanley added the comment: > Do we really want this to be just an assert, or do we want to raise another > type of exception? IMO, we should look into converting this into an exception. Mistakenly having a task await StreamWriter.drain() at the same time as another is calling

[issue40151] _overlapped room for improvement

2020-04-01 Thread Alexander Riccio
Change by Alexander Riccio : -- keywords: +patch pull_requests: +18658 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19298 ___ Python tracker

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
Change by Alexander Riccio : -- pull_requests: +18659 pull_request: https://github.com/python/cpython/pull/19298 ___ Python tracker ___

[issue40151] _overlapped room for improvement

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : Similarly to bpo-40145, I've tweaked build options to reduce the size of the binary. This patch turns on (for release builds) Whole Program Optimization, MinSpace optimization, /Ob2 AnySuitable function inlining, /Zo (so that people can still debug it

[issue40149] test_threading leaked [38, 38, 38] references, sum=114

2020-04-01 Thread Dong-hee Na
Dong-hee Na added the comment: FYI, first gc collect 772 secondary gc collect 4 -- ___ Python tracker ___ ___ Python-bugs-list

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : This popped out at me while looking for something else. It's probably not much of an actual problem, since the wrong datatype is larger than the correct one, but it's worth fixing. The problem is in overlapped_RegisterWaitWithQueue, at overlapped.c:297

[issue39812] Avoid daemon threads in concurrent.futures

2020-04-01 Thread Kyle Stanley
Kyle Stanley added the comment: > Thanks Kyle for the test_asyncio fix! No problem! Thanks for the review. :-) -- ___ Python tracker ___

[issue39812] Avoid daemon threads in concurrent.futures

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Kyle fixed bpo-40115, I close again this issue. Thanks Kyle for the test_asyncio fix! -- resolution: -> fixed status: open -> closed ___ Python tracker

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

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

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

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ec7cb53f0705509bac20c96d19fdbd9baec0cb2 by Kyle Stanley in branch 'master': bpo-40115: Fix refleak in test_asyncio.test_run_in_executor_cancel() (GH-19282) https://github.com/python/cpython/commit/8ec7cb53f0705509bac20c96d19fdbd9baec0cb2

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > About the "Install Dependencies" issue, I created bpo-40146: "Upgrade Azure > Pipelines to OpenSSL 1.1.1f". I fixed this issue. There is another issue: sometimes, the Ubuntu VM fails to download .deb from azure.archive.ubuntu.com. Example:

[issue40149] test_threading leaked [38, 38, 38] references, sum=114

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure why, but trigger explicitly a second GC collection fix the issue. diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 2d5cb0ff78..d20ae01238 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1295,6 +1295,7 @@

[issue40149] test_threading leaked [38, 38, 38] references, sum=114

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Attached test_leak.py is enough to reproduce the leak. It's related to subinterpreters and the _abc module. -- Added file: https://bugs.python.org/file49024/test_leak.py ___ Python tracker

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

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

[issue40077] Convert static types to PyType_FromSpec()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202) This change introduced a reference leak: bpo-40149 "test_threading leaked [38, 38, 38] references, sum=114". -- ___ Python tracker

[issue40149] test_threading leaked [38, 38, 38] references, sum=114

2020-04-01 Thread STINNER Victor
New submission from STINNER Victor : New changeset 53e4c91725083975598350877e2ed8e2d0194114 by Dong-hee Na in branch 'master': bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202) https://github.com/python/cpython/commit/53e4c91725083975598350877e2ed8e2d0194114 This change

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset e7c98f08e228e9f6e139d61e3e5d0a5018a38f0b by Victor Stinner in branch 'master': bpo-40094: Fix which.py script exit code (GH-19286) https://github.com/python/cpython/commit/e7c98f08e228e9f6e139d61e3e5d0a5018a38f0b --

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9a679a0e47d58aa73b7747d4e16140048c10baf5 by Victor Stinner in branch 'master': bpo-40094: CGIHTTPRequestHandler logs exit code (GH-19285) https://github.com/python/cpython/commit/9a679a0e47d58aa73b7747d4e16140048c10baf5 --

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Ok, the issue should now be fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker

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

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

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

2020-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18655 pull_request: https://github.com/python/cpython/pull/19296 ___ 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: > When I designed the FASTCALL calling convention, I experimented a new > tp_fastcall slot to PyTypeObject to optimize __call__() method: bpo-29259. Ah, by the way, I also made an attempt to use the FASTCALL calling convention for tp_new and tp_init:

[issue40148] Add PurePath.with_stem()

2020-04-01 Thread Tim Hoffmann
Change by Tim Hoffmann : -- keywords: +patch pull_requests: +18654 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19295 ___ Python tracker ___

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

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

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

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > But I think that the fix should be backported to 3.7 and 3.8 as well. Alright, it's required. Azure Pipelines now fails on 3.7 as well which prevents me to merge PR 19292 security fix. -- ___ Python tracker

[issue40125] update OpenSSL 1.1.1 in multissltests.py to 1.1.1f

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40146: the OpenSSL version is also hardcoded in .azure-pipelines/ci.yml and .azure-pipelines/pr.yml. I updated it as well. -- nosy: +vstinner ___ 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

[issue40144] resource: RLIMIT_xxx and RUSAGE_xxx constants are missing on macOS 10.15.4

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: I upgraded my macbook to macOS 10.15.4: $ ./python.exe -m test.pythoninfo|grep -E 'uname|platform' os.uname: posix.uname_result(sysname='Darwin', nodename='macbook', release='19.4.0', version='Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020;

[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

[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: New changeset e27916b1fc0364e3627438df48550c16f0b80b82 by Dong-hee Na in branch 'master': bpo-37207: Use PEP 590 vectorcall to speed up dict() (GH-19280) https://github.com/python/cpython/commit/e27916b1fc0364e3627438df48550c16f0b80b82 --

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 224e1c34d677ef42fe665ac008a000d4dcec1398 by Victor Stinner in branch 'master': bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19288) https://github.com/python/cpython/commit/224e1c34d677ef42fe665ac008a000d4dcec1398 --

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

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

[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

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

2020-04-01 Thread Ben Caller
Change by Ben Caller : Removed file: https://bugs.python.org/file49022/bench_parser2.py ___ Python tracker ___ ___ Python-bugs-list mailing

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

2020-04-01 Thread Ben Caller
Change by Ben Caller : Added file: https://bugs.python.org/file49023/bench_parser2.py ___ Python tracker ___ ___ Python-bugs-list mailing

[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

[issue40148] Add PurePath.with_stem()

2020-04-01 Thread Tim Hoffmann
New submission from Tim Hoffmann : Similar to PurePath.with_name() and PurePath.with_suffix() there should be a PurePath.with_stem(). A common use case would be appending something before the suffix: path.with_stem(path.stem + '_v2') As of now this must be written more cumbersome as:

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

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > How is it an undefined C behavior? It works well in practice, no? Famous last words ;) -- nosy: +pablogsal ___ 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

[issue40147] Move checking for duplicated keywords to the compiler

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

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : When a keyword is repeated in a call for instance: 'f(1, x=2, *(3, 4), x=5)' we raise a SyntaxError: File "lel.py", line 1 f(1, x=2, *(3, 4), x=5) ^ SyntaxError: keyword argument repeated This error is raised from the

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Because of this issue, "Azure Pipelines PR" fails on pull requests and so it's no longer possible to merge any pull request. -- ___ Python tracker

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: About the "Install Dependencies" issue, I created bpo-40146: "Upgrade Azure Pipelines to OpenSSL 1.1.1f". I don't understand how it's possible that the Ubuntu job passed in the GitHub action, but failed in Azure Pipelines. Maybe there was a download cache

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18647 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19288 ___ Python tracker ___

[issue40146] Upgrade Azure Pipelines to OpenSSL 1.1.1f

2020-04-01 Thread STINNER Victor
New submission from STINNER Victor : The "Install Dependencies" step of the Ubuntu PR Tests job of Azure Pipelines failed with: --- *** INFO /home/vsts/work/1/s/multissl/openssl/1.1.1d/bin/openssl *** INFO Downloading from https://www.openssl.org/source/openssl-1.1.1d.tar.gz Traceback (most

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

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: New changeset d57cf557366584539f400db523b555296487e8f5 by Victor Stinner in branch 'master': bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287) https://github.com/python/cpython/commit/d57cf557366584539f400db523b555296487e8f5 --

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > Decide if subprocess should reject WIFSTOPPED() or not. This code path was added by bpo-29335. -- ___ Python tracker ___

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

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 168660b547d5f683c5d3c60447cfa8c6d620efc3 by Pablo Galindo in branch 'master': bpo-40141: Add line and column information to ast.keyword nodes (GH-19283) https://github.com/python/cpython/commit/168660b547d5f683c5d3c60447cfa8c6d620efc3

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset c8dd641b6214bdcf794bab469a51da6843feb770 by Miss Islington (bot) in branch '3.7': bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) (GH-19278) https://github.com/python/cpython/commit/c8dd641b6214bdcf794bab469a51da6843feb770 --

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18646 pull_request: https://github.com/python/cpython/pull/19287 ___ Python tracker ___

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 267afc2ab2014e1e3c6b2ff088350a69b691a544 by Miss Islington (bot) in branch '3.8': bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) (GH-19277) https://github.com/python/cpython/commit/267afc2ab2014e1e3c6b2ff088350a69b691a544 --

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18645 pull_request: https://github.com/python/cpython/pull/19286 ___ 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

[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
Change by STINNER Victor : -- pull_requests: +18643 pull_request: https://github.com/python/cpython/pull/19285 ___ Python tracker ___

[issue40144] resource: RLIMIT_xxx and RUSAGE_xxx constants are missing on macOS 10.15.4

2020-04-01 Thread STINNER Victor
Change by STINNER Victor : -- title: test.support.SuppressCrashReport fails on macOS 10.15.4 -> resource: RLIMIT_xxx and RUSAGE_xxx constants are missing on macOS 10.15.4 ___ Python tracker

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
Change by Alexander Riccio : -- keywords: +patch pull_requests: +18642 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19284 ___ Python tracker

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : I've tweaked the pcbuild options for pyshellext to reduce the size of the binary. Since this is a very simple component, there really isn't much benefit of optimizing for speed, likely the slowest part of this component's lifetime is simply loading it.

[issue40144] test.support.SuppressCrashReport fails on macOS 10.15.4

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Yesterday, macOS job was fine with test.pythoninfo: os.uname: posix.uname_result(sysname='Darwin', nodename='Mac-1303.local', release='19.3.0', version='Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64',

[issue40144] test.support.SuppressCrashReport fails on macOS

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: Other errors on the same build: 13 tests failed: test_capi test_cmd_line test_exceptions test_faulthandler test_gc test_io test_repl test_resource test_selectors test_subprocess test_sys test_tempfile test_tracemalloc test_subprocess:

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

2020-04-01 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40110] multiprocessing.Pool.imap() should be lazy

2020-04-01 Thread Nick Guenther
Nick Guenther added the comment: Thank you for taking the time to consider my points! Yes, I think you understood exactly what I was getting at. I slept on it and thought about what I'd posted the day after and realized most of the points you raise, especially that serialized next() would

[issue40144] test.support.SuppressCrashReport fails on macOS

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/cpython/pull/19252/checks?check_run_id=552502971 test.pythoninfo says: os.uname: posix.uname_result(sysname='Darwin', nodename='Mac-1307.local', release='19.4.0', version='Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST

[issue40024] Add PyModule_AddType helper function

2020-04-01 Thread Kyle Stanley
Kyle Stanley added the comment: (disregard the above, the PR was mistakenly linked from a GitHub bug) -- ___ Python tracker ___

[issue40024] Add PyModule_AddType helper function

2020-04-01 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: -18641 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40144] test.support.SuppressCrashReport fails on macOS

2020-04-01 Thread STINNER Victor
New submission from STINNER Victor : Failure seen on the macOS job on a PR: https://github.com/python/cpython/pull/19252/checks?check_run_id=552502971 of https://github.com/python/cpython/pull/19252/files Reformatted error: AssertionError: Regex didn't match: "Fatal Python error:

[issue40143] shutil.rmtree will frequently fail on Windows under heavy load due to racy deletion

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : The "obvious" way to delete a directory tree on Windows is wrong. It's inherently racy, since deleting a file on Windows *doesn't actually delete it*, instead it marks the file for deletion. The system will eventually get around to deleting it, but

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > 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. I'm not aware of Travis CI current issue. There were issues in the past, as with any CI, right ;-) Travis CI looks quite

[issue40024] Add PyModule_AddType helper function

2020-04-01 Thread Kyle Stanley
Change by Kyle Stanley : -- nosy: +aeros nosy_count: 3.0 -> 4.0 pull_requests: +18641 pull_request: https://github.com/python/cpython/pull/19282 ___ Python tracker ___

[issue33493] dataclasses: allow keyword-only arguments

2020-04-01 Thread Chris Barker
Chris Barker added the comment: This does not actually appear to be a Duplicate of #33129. That one was asking to add **kwargs (I think) to the __init__. And was discussed and I think rejected on gitHub: https://github.com/python/cpython/pull/19206 But this calls for having keyword-only

[issue31160] Enhance support.reap_children()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > Pablo Galindo opened bpo-40140, let's use this one. Note: Oops, Batuhan created it, Pablo only commented. -- ___ Python tracker ___

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

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > 0:00:01 load avg: 1.70 [1/1/1] test_builtin crashed (Exit code -1) Exit code -1 looks like a process killed by SIGHUP. Which commit did you try? Can you please check that you tested with my commit 16d75675d2ad2454f6dfbf333c94e6237df36018? --

[issue40142] Modify _PyObject_GC_TRACK() to ensure that newly tracked object is valid

2020-04-01 Thread STINNER Victor
New submission from STINNER Victor : In bpo-38392, I modified PyObject_GC_Track() to ensure that the object newly tracked is valid: call its traverse function. => commit 1b1845569539db5c1a6948a5d32daea381f1e35f I propose to now also attempt to implement the same check in _PyObject_GC_TRACK()

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

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am understanding "crashing" as "segfaulting" -- ___ 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

[issue31160] Enhance support.reap_children()

2020-04-01 Thread STINNER Victor
STINNER Victor added the comment: > Please open a new issue. This one is closed. Pablo Galindo opened bpo-40140, let's use this one. -- ___ Python tracker ___

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

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Try making bigger the stack size (with ulimit -s ... or similar) -- nosy: +pablogsal ___ Python tracker ___

[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

[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

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

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

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

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

[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

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

[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

  1   2   >