[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
severity: normal
status: open
title: allow __text_signature__ to work for c heap types
versions: Python 3.10, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 away, so the only one left to 
be enumerated is the main thread, at which point the function is simply listing 
all threads currently alive.  But by that point it's just the main thread 
remaining.

I notice in the test that you have a comment about needing to wait for f to 
complete or you get a warning about thread not shutting down cleanly.  Was that 
a similar warning?  The run_until_complete(f) line seems to have no effect on 
the buildbot.

If I added a small sleep at the end of the test the warnings go away on the 
buildbot.  The buildbot is a fairly fast machine, so perhaps the test just 
needs to wait somehow for the event loop to fully shut down or something.

The most direct cause of the warnings seems to be the self.loop.close() call - 
if I just comment that out the test runs warning-free without any extra delay 
needed.

I don't know much about asyncio tests, but it would appear the close call in 
the test defeats some of the logic in the close_loop teardown code that runs 
under TestCase (in utils.py), which under Windows is just a call to 
run_until_complete(loop.shutdown_default_executor()).  If I add that same call 
to the test prior to the close it also passes cleanly.

So if closing the loop in the test itself is crucial, I'd suggest including the 
extra run_until_complete call.  If closing isn't crucial to the test, simply 
removing it seems to address the issue.  I'm not sure if its removal then has 
any implications for the extra run_until_complete(f) call in the test, as I 
can't see any impact from that on the buildbot.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 output during the tests?

Specifically, the following warnings occur during test_asyncio:
   Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, 
dangling: 2)
   Warning -- Dangling thread: <_MainThread(MainThread, started 5220)>

See https://buildbot.python.org/all/#/builders/146/builds/23 for the first 
failing build.

--
nosy: +db3l

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/77f4000ae0d43a2685face80e7f14d4aba053973


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/d14775ddbb067bcfa6eca516d3cbe968a8c1334e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: docs@python
components: Documentation
messages: 376207
nosy: brett.cannon, docs@python
priority: high
severity: normal
status: open
title: Document how **= does not fall back on **
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/9b648a95ccb4c3b14f1e87158f5c9f5dbb2f62c0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 bit of post-parsing value checking and adjustment. 
 The primary purpose of the parser is to identify what the user wants, and 
secondarily to give useful help and error messages.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

For example, pysleep could call WinAPI Sleep on the main thread if the 
interrupt event isn't configured:

ul_millis = (unsigned long)millisecs;
hInterruptEvent = _PyOS_SigintEvent();

if (ul_millis == 0 || !hInterruptEvent || !_PyOS_IsMainThread()) {
Py_BEGIN_ALLOW_THREADS
Sleep(ul_millis);
Py_END_ALLOW_THREADS
break;
}

--
components: +Windows
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware
type:  -> behavior
versions: +Python 3.10, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/c16a2a1b643d3e04f86780e2c9e66c3f9f322560


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 gets a new blank `namespace`.  When done 
those values are copied to the main namespace.  That gives subparser defaults 
priority over both the main ones, and the user provided namespace.

I don't entirely like that change, but it was made by the original developer.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/0d6aa7f0ee38eb453bc8f73bf4830e6172be2f35


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 expects 0 to be returned, it breaks. I already reported this in 
issue 36610, which led to sendfile eventually being disabled on Solaris to be 
safe before the 3.8 release.

We were first looking into a possibility to change Solaris behavior of sendfile 
to reflect that of Linux but decided not to because of the significant risk 
that it can break existing programs. The other reason is that sendfile isn't 
standardized (Linux manpage explicitly states that) and hence Solaris 
implementation isn't broken, just different. Because of that, we patched the 
runtime and added #ifdef branch (of which there are already many due to os 
differences) with additional offset check. It is tested with the current master 
and also 3.7, which we are using internally.

Thanks

--
components: Library (Lib)
messages: 376191
nosy: kulikjak
priority: normal
severity: normal
status: open
title: sendfile implementation is not compatible with Solaris
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 you absolutely don't want to lose messages 
(apparently not that common a case - the relevant code is over 15 years old, 
and I can't remember this coming up before), you could either subclass 
SocketHandler to buffer messages, or use e.g. a MemoryHandler in conjunction 
with a SocketHandler.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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"
  "start = time.time() \n"
  "time.sleep(4) \n"
  "print('elapsed: %d' % (time.time() - start))");
}

output:

elapsed: 0


Note, issue is not reproduce on Linux host.

--
components: C API
messages: 376189
nosy: hafizbilal100
priority: normal
severity: normal
status: open
title: C++ Embedded 'time.sleep()' is not working on Windows host due to 
'Py_InitializeEx(0)'
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 released. It would make sense to 
make our CI less dependent on releases of third party components: better 
control when we update dependencies. The risk is to forget to update these 
dependences if the updates are not automated."

--
assignee: docs@python
components: Documentation
messages: 376184
nosy: docs@python, mdk, ned.deily, vstinner
priority: critical
severity: normal
stage: commit review
status: open
title: make doctest on 3.10 (master branch) fails with setuptools 50.0.0
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 object.
Therefore any already existing namespace attribute should overwrite the default 
value of any argument which is not explicitly set. 

While this is true for the parent parser, it does not work for the subparser.
Here is a small example code:

import argparse

parser = argparse.ArgumentParser()
parser.add_argument('--root', type=str, default='.')
subparsers = parser.add_subparsers()
subparser = subparsers.add_parser('subp')
subparser.add_argument('--subroot', type=str, default='./subdir')
our_args = argparse.Namespace(root="./config_root", subroot="./config_subdir")

argv = ['subp']
args = parser.parse_args(argv, namespace=our_args)
print(args)

>>> Expected: Namespace(root='./config_root', subroot='./config_subdir')
>>> Output: Namespace(root='./config_root', subroot='./subdir')

When calling the subparser, the namespace attribute is overwritten by the 
default value.

--
assignee: docs@python
components: Documentation
messages: 376183
nosy: docs@python, lucca.ruhland
priority: normal
severity: normal
status: open
title: argparse: unexpected subparser behaviour on parse_args with namespace 
option
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Python executed: from a file in a Python 
launched from a command line terminal window, typed into a Python in a command 
line terminal window, from within an IDLE shell window, from an IDLE edit 
window?  How exactly did Python crash (what error messages were reported)? Also 
please paste the output from running in a terminal shell window:

python3.8 -m test.pythoninfo

replacing python3.8 with whatever you use to invoke the Python that fails.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 definition:
SETUPTOOLS_USE_DISTUTILS=stdlib

See https://github.com/pypa/setuptools/issues/2350 and others. If that doesn't 
work, you may want to follow up on an Ubuntu forum or the pip issue tracker:
https://github.com/pypa/pip/issues

--
nosy: +ned.deily
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com