[issue41689] allow __text_signature__ to work for c heap types

2020-09-01 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +21149 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22058 ___ Python tracker

[issue41689] allow __text_signature__ to work for c heap types

2020-09-01 Thread Benjamin Peterson
New submission from Benjamin Peterson : C types can add a signature to their __doc__. Currently, PyType_FromSpec just deletes such signatures instead of making them visible from __text_signature__. -- components: C API messages: 376216 nosy: benjamin.peterson priority: normal

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-01 Thread David Bolen
David Bolen added the comment: I'm guessing the warning appears odd as we're seeing a thread shutdown data race. The message is produced by threading_cleanup in support/threading_helper.py, and it appears that between the first and second lines one of the initially dangling threads goes

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-01 Thread Ammar Askar
Ammar Askar added the comment: Victor's fix is now in the 50.0.2 release, should we bump the pinned version, remove its pinning or do nothing? https://github.com/pypa/setuptools/commit/edcf84faaf17e87e6e38796dd24f66d9236bf87c https://pypi.org/project/setuptools/#history -- nosy:

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-01 Thread Ben Darnell
Ben Darnell added the comment: I can confirm that those warnings appear to be coming from the test I added here. I'm not sure how to interpret them, though - what does it mean for the main thread to be dangling? -- ___ Python tracker

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

2020-09-01 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21148 pull_request: https://github.com/python/cpython/pull/22051 ___ Python tracker ___

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

2020-09-01 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21147 pull_request: https://github.com/python/cpython/pull/22050 ___ Python tracker ___

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

2020-09-01 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21146 pull_request: https://github.com/python/cpython/pull/22049 ___ Python tracker ___

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-01 Thread David Bolen
David Bolen added the comment: I've been seeing failures on the Win10 buildbot 3.x branch that seem to correlate with the timing of this change - could there be some further work needed on Windows? Or, if it's a test-only artifact and the warnings are innocuous, something to ignore the

[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-09-01 Thread Shantanu
Change by Shantanu : -- pull_requests: +21145 pull_request: https://github.com/python/cpython/pull/22048 ___ Python tracker ___ ___

[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-09-01 Thread Kyle Stanley
Kyle Stanley added the comment: New changeset 17dc1b789ecc33b4a254eb3b799085f4b3624ca5 by Shantanu in branch 'master': bpo-39349: Add cancel_futures to Executor.shutdown base class (GH-22023) https://github.com/python/cpython/commit/17dc1b789ecc33b4a254eb3b799085f4b3624ca5 --

[issue41654] Segfault when raising MemoryError

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

[issue41654] Segfault when raising MemoryError

2020-09-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 77f4000ae0d43a2685face80e7f14d4aba053973 by Pablo Galindo in branch '3.8': [3.8] [3.9] bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020) (GH-22046)

[issue41654] Segfault when raising MemoryError

2020-09-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d14775ddbb067bcfa6eca516d3cbe968a8c1334e by Pablo Galindo in branch '3.9': [3.9] bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020) (GH-22045)

[issue41688] Document how **= does not fall back on **

2020-09-01 Thread Brett Cannon
New submission from Brett Cannon : https://bugs.python.org/issue38302 covers fixing the fact that `a **= b` does not fall back on `a = a ** b` when `__ipow__` is defined for PYthon 3.10. For older versions of CPython with the bug we should document the slip in semantics. -- assignee:

[issue38302] __pow__ and __rpow__ are not reached when __ipow__ returns NotImplemented for **=

2020-09-01 Thread Brett Cannon
Brett Cannon added the comment: I have opened https://bugs.python.org/issue41688 to track the documentation fixes so that this can become a release blocker for Python 3.10. -- priority: high -> release blocker versions: -Python 3.8, Python 3.9

[issue41688] Document how **= does not fall back on **

2020-09-01 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37873] unittest: execute tests in parallel

2020-09-01 Thread Bar Harel
Change by Bar Harel : -- nosy: +bar.harel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41679] Deprecation warning due to invalid escape sequences in Doc/tools/extensions/peg_highlight.py

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

[issue41654] Segfault when raising MemoryError

2020-09-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21142 pull_request: https://github.com/python/cpython/pull/22045 ___ Python tracker ___

[issue41654] Segfault when raising MemoryError

2020-09-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21143 pull_request: https://github.com/python/cpython/pull/22046 ___ Python tracker ___

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-01 Thread STINNER Victor
STINNER Victor added the comment: Thank you Joshua Root for your bug report! Your PR 21942 was good, but I chose to avoid __has_builtin() since it is not supported by all compilers and only available since GCC 10 for GCC. -- ___ Python tracker

[issue41684] argparse: unexpected subparser behaviour on parse_args with namespace option

2020-09-01 Thread Lucca Ruhland
Lucca Ruhland added the comment: Thank you very much for your support. I would say we can close this bug report. -- resolution: -> duplicate ___ Python tracker ___

[issue41617] __builtin_bswap16 is used without checking it is supported

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

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4217b3c12809b070928413f75949a7ddc4f2221c by Victor Stinner in branch '3.9': bpo-41617: Fix pycore_byteswap.h to support clang 3.0 (GH-22042) (GH-22044) https://github.com/python/cpython/commit/4217b3c12809b070928413f75949a7ddc4f2221c

[issue41654] Segfault when raising MemoryError

2020-09-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9b648a95ccb4c3b14f1e87158f5c9f5dbb2f62c0 by Pablo Galindo in branch 'master': bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020)

[issue41534] argparse : allow_abbrev behavior between 3.7 and 3.8

2020-09-01 Thread paul j3
paul j3 added the comment: I'm going to close this. 3.8 works as expected/documented, provided we use the normal double dash protocol for long options. Single dash is best reserved for single character options, where chaining is allowed. -- stage: -> resolved status: open ->

[issue41684] argparse: unexpected subparser behaviour on parse_args with namespace option

2020-09-01 Thread paul j3
paul j3 added the comment: When there are potential conflicts between arguments set by the main parser and those set by a subparser, I often recommend giving the sub ones different "dest" parameters. Then you can reconcile the different values after parsing. There's nothing wrong with a

[issue41549] IDLE leaks `_` into hint box

2020-09-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41528] Use math module in turtle

2020-09-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6844b56176c41f0a0e25fcd4fef5463bcdbc7d7c by Marek Madejski in branch 'master': bpo-41528: Use math module in turtle (GH-21837) https://github.com/python/cpython/commit/6844b56176c41f0a0e25fcd4fef5463bcdbc7d7c -- nosy: +terry.reedy

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21141 pull_request: https://github.com/python/cpython/pull/22044 ___ Python tracker ___

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset e6905e4c82cc05897dc1bf5ab2b5b94b2b043a7f by Victor Stinner in branch 'master': bpo-41617: Fix pycore_bitutils.h to support clang 3.0 (GH-22042) https://github.com/python/cpython/commit/e6905e4c82cc05897dc1bf5ab2b5b94b2b043a7f --

[issue26053] regression in pdb output between 2.7 and 3.5

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21140 pull_request: https://github.com/python/cpython/pull/22043 ___ Python tracker ___

[issue41679] Deprecation warning due to invalid escape sequences in Doc/tools/extensions/peg_highlight.py

2020-09-01 Thread STINNER Victor
STINNER Victor added the comment: Do you want to propose a PR to fix these warnings? -- nosy: +vstinner ___ Python tracker ___ ___

[issue41684] argparse: unexpected subparser behaviour on parse_args with namespace option

2020-09-01 Thread Lucca Ruhland
Lucca Ruhland added the comment: Sorry for the duplication, i haven't noticed the other bug reports. As far as i have seen, i would need to overwrite parts of the _SubParsersAction, _ActionsContainer and ArgumentParser class. Is there maybe an easier way to change the behavior? --

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41681] f-string error description seems wrong

2020-09-01 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-01 Thread Eryk Sun
Eryk Sun added the comment: The SIGINT event gets created when the _signal extension module is imported. Until then, _PyOS_SigintEvent() returns NULL. But currently all code that calls _PyOS_SigintEvent() assumes it returns a valid handle. This has to be fixed to support Py_InitializeEx(0).

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21139 pull_request: https://github.com/python/cpython/pull/22042 ___ Python tracker ___

[issue41681] f-string error description seems wrong

2020-09-01 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset c16a2a1b643d3e04f86780e2c9e66c3f9f322560 by Miss Islington (bot) in branch '3.9': bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036) (GH-22041)

[issue41684] argparse: unexpected subparser behaviour on parse_args with namespace option

2020-09-01 Thread paul j3
paul j3 added the comment: I've noted this behavior before. https://bugs.python.org/issue27859 argparse - subparsers does not retain namespace https://bugs.python.org/issue9351 argparse set_defaults on subcommands should override top level set_defaults Due to a change 2012, the subparser

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-01 Thread STINNER Victor
STINNER Victor added the comment: Joshua Root: I'm curious. Can I ask you on which platform do you use clang older than 3.2? It has been released 8 years ago, December 2012. The LLVM project is known to evolve very quickly! -- ___ Python tracker

[issue41681] f-string error description seems wrong

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

[issue41681] f-string error description seems wrong

2020-09-01 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0d6aa7f0ee38eb453bc8f73bf4830e6172be2f35 by han-solo in branch 'master': bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036)

[issue41687] sendfile implementation is not compatible with Solaris

2020-09-01 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +21137 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22040 ___ Python tracker ___

[issue41687] sendfile implementation is not compatible with Solaris

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

[issue41687] sendfile implementation is not compatible with Solaris

2020-09-01 Thread Jakub Kulik
New submission from Jakub Kulik : Hi, Sendfile on Solaris raises EINVAL if offset is equal or bigger than the size of the file. This is different from Linux, where similar sendfile call returns 0, which is used in an ad-hoc fashion to indicate EOF. Since Python sendfile implementation

[issue41371] test_zoneinfo fails when lzma module is unavailable

2020-09-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +21136 pull_request: https://github.com/python/cpython/pull/22039 ___ Python tracker ___

[issue40352] SocketHandler silently drops log messages on re-connect

2020-09-01 Thread Vinay Sajip
Vinay Sajip added the comment: > But when we use TCP it is expected that log messages will not be lost. I wouldn't go that far: logging is not a primary program function (i.e. the library or application should work exactly the same if logging were to be disabled). For the situation where

[issue30926] KeyError with cgitb inspecting exception in generator expression

2020-09-01 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-01 Thread hafiz bilal
New submission from hafiz bilal : Hi, time.sleep() function is not working on Windows host if I use C API Py_InitializeEx(0) function. Issue could be reproduce with following simple example. int main() { Py_InitializeEx(0); PyRun_SimpleString("import time \n"

[issue41677] os.access() doesn't recognize lack of permissions on an SMB mountpoint

2020-09-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: os.access is a think wrapper around C APIs (access(2), faccessat(2)). I don't think this is a bug in Python, a shell command like "test -r /opt/xray" will almost certainly give the same result. -- nosy: +ronaldoussoren

[issue41674] Doc tests failing for many PRs on GitHub

2020-09-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is being fixed by pinning setuptools in issue41685. Closing it as duplicate. -- nosy: +xtreak resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> make doctest on 3.10 (master branch) fails with setuptools

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

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

[issue41684] argparse: unexpected subparser behaviour on parse_args with namespace option

2020-09-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41602] Python doesn't exit with proper resultcode on SIGINT in runpy (pymain_run_module)

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41622] Add support for emoji-data.txt and emoji-variation-sequences.txt to unicodedata

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33997] multiprocessing Pool hangs in terminate()

2020-09-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-01 Thread STINNER Victor
STINNER Victor added the comment: I proposed https://github.com/pypa/setuptools/pull/2361 to fix setuptools compatibility with Python 3.10. -- ___ Python tracker ___

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-01 Thread Ned Deily
Ned Deily added the comment: New changeset a4c4e17f959621ab00a98086af1704fb0c896466 by Ned Deily in branch 'master': bpo-41685: Temporarily pin setuptools to 49.2.1 in Docs venv. (GH-22038) https://github.com/python/cpython/commit/a4c4e17f959621ab00a98086af1704fb0c896466 --

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-01 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +21135 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/22038 ___ Python tracker

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-01 Thread Ned Deily
Change by Ned Deily : -- priority: critical -> high stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-01 Thread Ned Deily
New submission from Ned Deily : See pypa/setuptools#2361 for details. For now, temporarily pin setuptools version in the Doc venv to a previous version. Victor notes: ""Temporarily pin setuptools": we already pin Sphinx version to also avoid breaking the CI when a new Sphinx version is

[issue41684] argparse: unexpected subparser behaviour on parse_args with namespace option

2020-09-01 Thread Lucca Ruhland
New submission from Lucca Ruhland : When parsing arguments with a namespace object, the subparser are behaving different than the main parser, although this is not stated in the documentation. Each attribute which is not already part of the namespace, should be saved into the namespace

[issue30926] KeyError with cgitb inspecting exception in generator expression

2020-09-01 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2.7 is no longer supported, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-09-01 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. However, you are going to have give more specific information for us to be able to try to understand and reproduce the problem. Exactly what steps did you use to show the problem, in particular, in what context were those three lines of

[issue41683] Python3: Installation error on Ubunti-18

2020-09-01 Thread Ned Deily
Ned Deily added the comment: If setuptools 50 is in use, you are likely running into one of various problems introduced by setuptools new vendoring of distutils which breaks various Ubuntu local modifications. It looks like a temporary workaround is to to add this environment variable

[issue41678] File-level, optionally external sorting

2020-09-01 Thread Dennis Sweeney
Dennis Sweeney added the comment: Attached is a proof of concept. -- Added file: https://bugs.python.org/file49436/disksort.py ___ Python tracker ___