[issue39096] "Format Specification Mini-Language" doc mistake for Decimal

2020-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22690
pull_request: https://github.com/python/cpython/pull/23831

___
Python tracker 

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



[issue39096] "Format Specification Mini-Language" doc mistake for Decimal

2020-12-18 Thread Julien Palard


Julien Palard  added the comment:


New changeset 886b2e5c7a2caf87070728dba8f18c3d65e51071 by Mark Dickinson in 
branch 'master':
bpo-39096: Format specification documentation fixes for numeric types (GH-23575)
https://github.com/python/cpython/commit/886b2e5c7a2caf87070728dba8f18c3d65e51071


--
nosy: +mdk

___
Python tracker 

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



[issue39096] "Format Specification Mini-Language" doc mistake for Decimal

2020-12-18 Thread Julien Palard


Change by Julien Palard :


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



[issue39096] "Format Specification Mini-Language" doc mistake for Decimal

2020-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22691
pull_request: https://github.com/python/cpython/pull/23832

___
Python tracker 

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



[issue39096] "Format Specification Mini-Language" doc mistake for Decimal

2020-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset 12032cdec5ae1e56d4e4b8206fb2e95a9f58 by Miss Islington (bot) 
in branch '3.8':
bpo-39096: Format specification documentation fixes for numeric types (GH-23575)
https://github.com/python/cpython/commit/12032cdec5ae1e56d4e4b8206fb2e95a9f58


--

___
Python tracker 

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



[issue42673] Optimize round_size for rehashing

2020-12-18 Thread Jurjen N.E. Bos


New submission from Jurjen N.E. Bos :

There's a trivial optimization in the round_size in hashtable.c:
a loop is used to compute the lowest power of two >= s,
while this can be done in one step with bit_length.
I am making a pull request for this.

--
components: Interpreter Core
messages: 383291
nosy: jneb
priority: normal
severity: normal
status: open
title: Optimize round_size for rehashing
type: performance
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



[issue42673] Optimize round_size for rehashing

2020-12-18 Thread Jurjen N.E. Bos


Change by Jurjen N.E. Bos :


--
keywords: +patch
pull_requests: +22692
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23833

___
Python tracker 

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



[issue42238] Deprecate suspicious.py?

2020-12-18 Thread Julien Palard


Julien Palard  added the comment:


New changeset b9735420aa8ecd2555fe3dc000863bc50487334b by Julien Palard in 
branch 'master':
bpo-42238: Check Misc/NEWS.d/next/ for reStructuredText issues. (GH-23802)
https://github.com/python/cpython/commit/b9735420aa8ecd2555fe3dc000863bc50487334b


--

___
Python tracker 

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



[issue39096] "Format Specification Mini-Language" doc mistake for Decimal

2020-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset b812e236df506603e592086269e088b00d021460 by Miss Islington (bot) 
in branch '3.9':
bpo-39096: Format specification documentation fixes for numeric types (GH-23575)
https://github.com/python/cpython/commit/b812e236df506603e592086269e088b00d021460


--

___
Python tracker 

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



[issue42673] Optimize round_size for rehashing

2020-12-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Do you have any benchmarks?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue42671] Make the Python finalization more deterministic

2020-12-18 Thread STINNER Victor


STINNER Victor  added the comment:

> I wrote this issue to attempt to fix a leak in PR 23811 which converts the 
> _thread extension module to the multiphase initialization API (PEP 489).

I fixed this bug by adding a traverse function to the _thread lock type. So I 
don't *need* this issue to unblock PR 23811 anymore.

But I'm still interested to make the finalization more determistic.

--

___
Python tracker 

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



[issue42671] Make the Python finalization more deterministic

2020-12-18 Thread STINNER Victor


STINNER Victor  added the comment:

> Drawback: it is a backward incompatible change. Code which worked by luck 
> previously no longer works. I'm talking about applications which rely on 
> __del__() methods being calling in an exact order and expect Python being in 
> a specific state.

Python does not provide any warranty in which order finalizers are called:
https://docs.python.org/dev/reference/datamodel.html#object.__del__

PyPy is a good concrete example of finalizers being called in a different order.

An application must not rely on the finalizer order, but manage resources 
explicitly by calling close() methods or using context managers. Python emits 
ResourceWarning on this purpose.

--

___
Python tracker 

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



[issue42674] __init_subclass__ only called for first subclass when class has multiple inheritance

2020-12-18 Thread Chris Gahagan


Change by Chris Gahagan :


--
files: SubClass.py
nosy: ccgahagan
priority: normal
severity: normal
status: open
title: __init_subclass__ only called for first subclass when class has multiple 
inheritance
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49691/SubClass.py

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 84ebcf271a2cc8bfd1762acb279502b8b6ef236e by Matt Wozniski in 
branch 'master':
bpo-17140: Document multiprocessing's ThreadPool (GH-23812)
https://github.com/python/cpython/commit/84ebcf271a2cc8bfd1762acb279502b8b6ef236e


--
nosy: +pablogsal

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22694
pull_request: https://github.com/python/cpython/pull/23835

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 9.0 -> 10.0
pull_requests: +22693
pull_request: https://github.com/python/cpython/pull/23834

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22695
pull_request: https://github.com/python/cpython/pull/23836

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset 14619924c36435e356135988c244cbc28652c82b by Miss Islington (bot) 
in branch '3.9':
bpo-17140: Document multiprocessing's ThreadPool (GH-23812)
https://github.com/python/cpython/commit/14619924c36435e356135988c244cbc28652c82b


--

___
Python tracker 

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



[issue42604] EXT_SUFFIX too short on FreeBSD and AIX

2020-12-18 Thread mattip


mattip  added the comment:

vstinner: ping. Are merge builds still failing or can I close this?

--

___
Python tracker 

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



[issue42665] Should PyLong_AsLongAndOverflow raise exception on overflow?

2020-12-18 Thread Mark Dickinson


Mark Dickinson  added the comment:

@ganesh3597. PyLong_AsLongAndOverflow is behaving as intended, and changes to 
the behaviour would break existing code.

If you think there's a case for changing the behaviour, you'd need to provide 
your rationale for the change, details of what you propose as the new behaviour 
and what steps you'd take for backwards compatibility.

If you were confused by the documentation, please identify which part of the 
documentation was misleading, and we can look into whether it needs fixing.

--
nosy: +mark.dickinson
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



[issue40956] Use Argument Clinic in sqlite3

2020-12-18 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 1ba82bbc50a52f40ad05f3c4aaf2e159e0ce126d by Erlend Egeberg 
Aasland in branch 'master':
bpo-40956: Convert _sqlite3.Connection to Argument Clinic (GH-23341)
https://github.com/python/cpython/commit/1ba82bbc50a52f40ad05f3c4aaf2e159e0ce126d


--

___
Python tracker 

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



[issue40956] Use Argument Clinic in sqlite3

2020-12-18 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +22696
pull_request: https://github.com/python/cpython/pull/23837

___
Python tracker 

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



[issue42673] Optimize round_size for rehashing

2020-12-18 Thread Jakub Stasiak

Jakub Stasiak  added the comment:

I'd be especially curious about branch (mis)prediction stats before and after 
applying this patch – including such information seems necessary in a patch 
that's about optimization.

--
nosy: +jstasiak

___
Python tracker 

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



[issue40956] Use Argument Clinic in sqlite3

2020-12-18 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 2179349d8cf45b1202775547df384b1fde31630a by Dong-hee Na in branch 
'master':
bpo-40956: Fix sqlite3 AC code (GH-23837)
https://github.com/python/cpython/commit/2179349d8cf45b1202775547df384b1fde31630a


--

___
Python tracker 

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



[issue40956] Use Argument Clinic in sqlite3

2020-12-18 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22697
pull_request: https://github.com/python/cpython/pull/23838

___
Python tracker 

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



[issue42675] Document changes made in bpo-42195

2020-12-18 Thread Ken Jin


New submission from Ken Jin :

A whatsnew is probably needed as this change causes backwards incompatibility 
in some code working with Python 3.9.0 and 3.9.1. I think the patch for Python 
3.9.2 should mention that a DeprecationWarning is emitted for some invalid use 
cases, which will eventually become a TypeError.

--
assignee: docs@python
components: Documentation
messages: 383304
nosy: docs@python, gvanrossum, kj
priority: normal
severity: normal
status: open
title: Document changes made in bpo-42195
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



[issue42675] Document changes made in bpo-42195

2020-12-18 Thread Ken Jin


Change by Ken Jin :


--
keywords: +patch
pull_requests: +22698
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23839

___
Python tracker 

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



[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-12-18 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +22699
pull_request: https://github.com/python/cpython/pull/23839

___
Python tracker 

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



[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-12-18 Thread Ken Jin


Change by Ken Jin :


--
pull_requests:  -22699

___
Python tracker 

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



[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread Karl Nelson


Karl Nelson  added the comment:

I attempted another deep dive on this one.

1) Removed manual library add
   platform_specific['libraries'] = ['Advapi32']
No change.

2) Compared symbol wise imports
Two imports changed
PyIndex_Check
PyObject_CheckBuffer
plus one additional "fflush" dependency in api-ms-win-crt-stdio-l1-1-0.dll 

3) Compared symbol wise exports 
No changes detected.

4) Disassembled both binaries
Other than a addressing that is about a 0x1000 change in the relocation tables. 
 Guessing that this is just a change in the number of pages.  There were 
functional changes likely related to Python macros differences.

5) Removed all references to printf and flush to remove 
api-ms-win-crt-stdio-l1-1-0.dll dependency.
No change.

6) Scanned the changelog and Code changes for the past year in  
Python/dynload_win.c.  
Nothing appears likely to trigger this change.

7) Deleted the _jpype module entirely to verify that the error message is 
related to the copy that I am working on and not some other copy on system.
Error message changes to "ModuleNotFoundError: No module named '_jpype'"

8) Scanned the source code for static variables.
None detected thus far.  But it is a many hours long process.  Structurally 
these should not exist based on the module design.

Statics found thus far.
2 jobject and jmethodID pointer types
One C++ class called PLATFORM_ADAPTER which is the required routine determining 
whether to load jvm.dll or jvm.so using LoadLibrary or dlopen or shload.
The global pointer to the context C++ class;
a bunch of statics related to logging when enabled.
Python C style structure definitions.

Everything was a primitive or pointer with the exception of one class.  All 
pointers I found were initialized to constant values.

I rewrote the PLATFORM_ADAPTER to use a pointer rather than be initialized at 
load time.  No joy.

(after scanning through 17k lines of code take break and ponder life)

It is certainly possible I missed something here but it looks pretty unlikely 
this is the source of the error.


9) Verified that the behavior does not occur on Python 3.8.5 with the current 
source code.  
Pass.  This only happens on Python 3.9.0

10) Scanned the linker line for differences.
One major difference.  In Python 3.8 the linker line contains quotes around all 
the arguments while in Python 3.9 the linker line is missing the quotes on all 
/LIBPATH statements.  However this must be a logging difference as the 
statement without the quotes would not work.

11) Manually ran linker command.  
Nothing changed, same behavior.  So link command is a red herring.

12) Profit???

Okay I have once again exhausted everything that I can think of on the JPype 
side.   So that leaves something in the build process that does not appear in 
the logs, a symbol conflict that so how only triggers on one path, or 
Python3.9.0 has a corrupt build in the wild.   

Steve is there anything else that I can try here?

--

___
Python tracker 

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



[issue42604] EXT_SUFFIX too short on FreeBSD and AIX

2020-12-18 Thread STINNER Victor


STINNER Victor  added the comment:

test_sysconfig still fails:

* POWER6 AIX 3.x: https://buildbot.python.org/all/#/builders/302/builds/563
* PPC64 AIX 3.x: https://buildbot.python.org/all/#/builders/438/builds/593
* AMD64 FreeBSD Shared 3.x: 
https://buildbot.python.org/all/#/builders/483/builds/572

--

___
Python tracker 

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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread Yury Selivanov


Yury Selivanov  added the comment:


New changeset 17ef4319a34f5a2f95e7823dfb5f5b8cff11882d by Richard Kojedzinszky 
in branch 'master':
bpo-41891: ensure asyncio.wait_for waits for task completion (#22461)
https://github.com/python/cpython/commit/17ef4319a34f5a2f95e7823dfb5f5b8cff11882d


--

___
Python tracker 

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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +22700
pull_request: https://github.com/python/cpython/pull/23840

___
Python tracker 

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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

Thanks for the PR, Richard!

--
nosy:  -miss-islington

___
Python tracker 

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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +22701
pull_request: https://github.com/python/cpython/pull/23841

___
Python tracker 

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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread Yury Selivanov


Change by Yury Selivanov :


--
nosy:  -miss-islington
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



[issue42600] Cancelling tasks waiting for asyncio.Conditions crashes w/ RuntimeError: Lock is not acquired.

2020-12-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

This has been actually first fixed in #41891 but somehow wasn't yet merged. 
Yurii, thanks so much for working on this and making a PR, there was just 
another PR to fix the same issue that was there first, so I had to merge that 
one.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
superseder:  -> asyncio.wait_for does not wait for task/future to be completed 
in all cases

___
Python tracker 

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



[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-12-18 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +22702
pull_request: https://github.com/python/cpython/pull/23839

___
Python tracker 

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



[issue42675] Document changes made in bpo-42195

2020-12-18 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset d75f6f78e6ca230d0dacc116dca9d8bf91509b68 by kj in branch 'master':
bpo-42675: Document collections.abc.Callable changes (GH-23839)
https://github.com/python/cpython/commit/d75f6f78e6ca230d0dacc116dca9d8bf91509b68


--

___
Python tracker 

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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset a3dec9d8ec5ae142946ff6b94947a183d7c48f35 by Miss Islington (bot) 
in branch '3.8':
bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461)
https://github.com/python/cpython/commit/a3dec9d8ec5ae142946ff6b94947a183d7c48f35


--
nosy: +miss-islington

___
Python tracker 

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



[issue42667] shelve module is not thread-safe during accessing different databases from different threads

2020-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I suggest removing the global state from dbm and just recomputing the 
underlying database for every call to open().

--
nosy: +rhettinger

___
Python tracker 

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



[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
nosy: +rhettinger
nosy_count: 4.0 -> 5.0
pull_requests: +22703
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23842

___
Python tracker 

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



[issue42676] zoneinfo uses locale depending functions for parsing

2020-12-18 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

zoneinfo uses locale depending functions isalpha(), isdigit(), isalnum() to 
parse data. It may be correct when parse the TZ environment variable (although 
they do not work with multibytes locale encodings like UTF-8), I think that 
parsing the content of data files should not rely on current locale. Later the 
parsed data is decoded implying UTF-8 (for abbr) or ASCII (for numbers).

--
components: Library (Lib)
messages: 383313
nosy: p-ganssle, serhiy.storchaka
priority: normal
severity: normal
status: open
title: zoneinfo uses locale depending functions for parsing
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



[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +22704
pull_request: https://github.com/python/cpython/pull/23843

___
Python tracker 

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



[issue34690] Store startup modules as C structures for 20%+ startup speed improvement

2020-12-18 Thread Eric Engeström

Change by Eric Engeström :


--
nosy: +1ace

___
Python tracker 

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



[issue42667] shelve module is not thread-safe during accessing different databases from different threads

2020-12-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Loading modules every time without using a cache (sys.modules) can add 
significant overhead.

--

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset d21d29ab5b8741da056ac09c49c759b6ccbf264a by Miss Islington (bot) 
in branch '3.8':
[3.8] bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23835)
https://github.com/python/cpython/commit/d21d29ab5b8741da056ac09c49c759b6ccbf264a


--

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread Ned Deily


Ned Deily  added the comment:


New changeset 00278d4e616315e64557bff014574c079e6e96ff by Miss Islington (bot) 
in branch '3.7':
bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23836)
https://github.com/python/cpython/commit/00278d4e616315e64557bff014574c079e6e96ff


--
nosy: +ned.deily

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread Ned Deily


Ned Deily  added the comment:

Thanks, Matt, for the documentation PR.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
pull_requests: +22705
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/23844

___
Python tracker 

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



[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2020-12-18 Thread Julien Palard


Change by Julien Palard :


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



[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-12-18 Thread Julien Palard


Julien Palard  added the comment:

Is it fixed?

--

___
Python tracker 

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



[issue34398] Docs search should prominently show definitions and glossary items

2020-12-18 Thread Julien Palard


Julien Palard  added the comment:


New changeset 8c5d0347efd16f16dfb9596715e449cd928b89c8 by Ammar Askar in branch 
'master':
bpo-34398: Allow glossary results to show up on search page (GH-8773)
https://github.com/python/cpython/commit/8c5d0347efd16f16dfb9596715e449cd928b89c8


--

___
Python tracker 

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



[issue36769] doc Document that fnmatch.filter supports any kind of iterable not just lists

2020-12-18 Thread Julien Palard


Julien Palard  added the comment:


New changeset e8d22642105d57007ab1242848a8cbadc7f179df by Andre Delfino in 
branch 'master':
bpo-36769: Document that fnmatch.filter supports any kind of iterable (#13039)
https://github.com/python/cpython/commit/e8d22642105d57007ab1242848a8cbadc7f179df


--
nosy: +mdk

___
Python tracker 

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



[issue36769] doc Document that fnmatch.filter supports any kind of iterable not just lists

2020-12-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +22706
pull_request: https://github.com/python/cpython/pull/23845

___
Python tracker 

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



[issue36769] doc Document that fnmatch.filter supports any kind of iterable not just lists

2020-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22707
pull_request: https://github.com/python/cpython/pull/23846

___
Python tracker 

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



[issue42677] Support comments in argparse fromfile_prefix_chars files

2020-12-18 Thread Thomas Nabelek


New submission from Thomas Nabelek :

For input argument files, specified with the fromfile_prefix_chars argument to 
argparse.ArgumentParser, argparse should ignore lines beginning with '#' so 
that comments can be used in those files.

--
components: Library (Lib)
messages: 383321
nosy: nabelekt
priority: normal
severity: normal
status: open
title: Support comments in argparse fromfile_prefix_chars files
type: enhancement

___
Python tracker 

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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread Yury Selivanov


Yury Selivanov  added the comment:


New changeset 82dbfd5a04863d8b6363527e6a34a90c9aa5691b by Miss Islington (bot) 
in branch '3.9':
bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461) (#23840)
https://github.com/python/cpython/commit/82dbfd5a04863d8b6363527e6a34a90c9aa5691b


--

___
Python tracker 

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



[issue36769] doc Document that fnmatch.filter supports any kind of iterable not just lists

2020-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset 4b412e830d0a7d3f30af60b9eb285558511d90af by Miss Islington (bot) 
in branch '3.9':
bpo-36769: Document that fnmatch.filter supports any kind of iterable (GH-13039)
https://github.com/python/cpython/commit/4b412e830d0a7d3f30af60b9eb285558511d90af


--

___
Python tracker 

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



[issue42678] [Enum] _sunder_ methods only looked up in the last Enum class in the mro

2020-12-18 Thread Ethan Furman


Change by Ethan Furman :


--
assignee: ethan.furman
components: Library (Lib)
nosy: ethan.furman
priority: normal
severity: normal
stage: needs patch
status: open
title: [Enum] _sunder_ methods only looked up in the last Enum class in the mro
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



[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases

2020-12-18 Thread Yurii Karabas


Yurii Karabas <1998uri...@gmail.com> added the comment:

Yurii no worries, I am happy that this issue is resolved)

--
nosy: +uriyyo

___
Python tracker 

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



[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread Karl Nelson


Karl Nelson  added the comment:

Just for reference here are all the dependencies that _jpype has

```
MSVCP140.dll

python39.dll

KERNEL32.dll

VCRUNTIME140_1.dll  

VCRUNTIME140.dll


api-ms-win-crt-runtime-l1-1-0.dll   
  
   api-ms-win-crt-string-l1-1-0.dll 

   api-ms-win-crt-heap-l1-1-0.dll
```

So it isn't like there are a whole lot of things that I am doing that are 
likely to trigger a dependency problem.

As far as I can see the only items that are not already on python39.dll 
dependency list are VCRUNTIME140_1.dll and MSVCP140.dll.  But if that were the 
case then surely other projects would also be hitting this bug.  So this error 
message makes no sense at all.

--

___
Python tracker 

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



[issue31861] add aiter() and anext() functions to operator module

2020-12-18 Thread Joshua Bronson


Change by Joshua Bronson :


--
pull_requests: +22708
pull_request: https://github.com/python/cpython/pull/23847

___
Python tracker 

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



[issue31861] add aiter() and anext() functions

2020-12-18 Thread Joshua Bronson


Joshua Bronson  added the comment:

Please see https://github.com/python/cpython/pull/23847 for the C 
implementation of aiter and anext added to builtins, as requested.

--
title: add aiter() and anext() functions to operator module -> add aiter() and 
anext() functions

___
Python tracker 

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



[issue39560] PyUnicode_FromKindAndData kind transformation is not documented

2020-12-18 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 3.0 -> 4.0
pull_requests: +22710
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23848

___
Python tracker 

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



[issue42679] Minor improvement in datetime.timestamp() docs

2020-12-18 Thread Olvin


New submission from Olvin :

Answering question on StackOverflow I've found next example in docs of 
datetime.timestamp() ( 
https://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp ) 
which returns UTC timestamp:

timestamp = (dt - datetime(1970, 1, 1)) / timedelta(seconds=1)

While it works I think there's more explicit way using 
timedelta.total_seconds() :

timestamp = (dt - datetime(1970, 1, 1)).total_seconds()

In same article few lines above there's example using total_seconds() so I 
think it will be good to use same method in both examples.

--
assignee: docs@python
components: Documentation
messages: 383328
nosy: docs@python, olvinroght
priority: normal
severity: normal
status: open
title: Minor improvement in datetime.timestamp() docs
type: enhancement

___
Python tracker 

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



[issue42624] sqlite3 package document mistake

2020-12-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The doc is the same in 3.10.

What OS and exact Python release? Can you post minimal code that verifies your 
claim?  (Someone what have to verify with 3.10 also.)

This would strike me as an error in the code.  We can fix 'wrong Exception' in 
the next release.  I am not sure whether we would do so in a current release.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue24139] Use sqlite3 extended error codes

2020-12-18 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue42624] sqlite3 package document mistake

2020-12-18 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue42677] Support comments in argparse fromfile_prefix_chars files

2020-12-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think you could achieve this by overriding convert_arg_line_to_args.

If this were baked in to argparse, there would need to be an argument to 
argparse.ArgumentParser to turn on this behavior, with the default being to not 
support comments. That's because enabling this by default would be a non 
backward compatible change.

Personally, I think argparse.ArgumentParser is already too complex, and this 
shouldn't be added.

--
nosy: +eric.smith, paul.j3, rhettinger

___
Python tracker 

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



[issue40866] Use PyModule_AddType() in posix module initialisation

2020-12-18 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


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



[issue37572] email lib bug

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +rhettinger
nosy_count: 5.0 -> 6.0
pull_requests: +22712
pull_request: https://github.com/python/cpython/pull/23849

___
Python tracker 

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



[issue42572] Better path handling with argparse

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
pull_requests: +22711
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23849

___
Python tracker 

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



[issue35005] argparse should accept json and yaml argument types

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +22713
pull_request: https://github.com/python/cpython/pull/23849

___
Python tracker 

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



[issue42572] Better path handling with argparse

2020-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Eric and Paul, I've attached a substantial rewrite of the docs for the *type* 
parameter:

* Document the exceptions that are handled.
* Show a wider range of examples that work with *type*.
* Discuss when *type* shouldn't be used:  bool, JSONDecoder, etc.
* Create a less whimsical example of a user-defined type converter.
* Explain the interaction between *type* and *default*.

Let me know what you think.

--

___
Python tracker 

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



[issue42125] linecache cannot get source for the __main__ module with a custom loader

2020-12-18 Thread Eugene Toder


Change by Eugene Toder :


--
nosy: +ncoghlan, vstinner

___
Python tracker 

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



[issue42633] Wave documentation doesn't mention signed/unsigned requirements

2020-12-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I not sure about 'very useful'.  One has to know a lot more than the sample 
width in bytes, which can be 1 to 4 (according to the code), not just 1 to 2 
(as implied by https://en.wikipedia.org/wiki/WAV), to effectively use the 
module.  Such things as the endianess of multibyte samples and what is 'linear 
pulse code modulation'.  The docs assume that one know all this from another 
source.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread William Pickard


William Pickard  added the comment:

You may need to inject a LoadLibraryExW detour into your python runtime before 
_jpype is loaded and output all the library names its requesting.

You may need to detour all Load 
Library functions for maximum coverage.

--
nosy: +WildCard65

___
Python tracker 

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



[issue3735] allow multiple threads to efficiently send the same requests to a processing.Pool without incurring duplicate processing

2020-12-18 Thread Irit Katriel


Change by Irit Katriel :


--
stage: needs patch -> resolved
status: pending -> closed

___
Python tracker 

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



[issue24792] zipimporter masks import errors

2020-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset fb34096140bbb74c81500dd8bbc3c69c1d24d9ab by Irit Katriel in 
branch 'master':
bpo-24792: Fix zipimporter masking the cause of import errors (GH-22204)
https://github.com/python/cpython/commit/fb34096140bbb74c81500dd8bbc3c69c1d24d9ab


--
nosy: +miss-islington

___
Python tracker 

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



[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

I strongly oppose this change, and I dispute the characterisation of 
this as a misleading note. It is not misleading, and I argue that every 
word of it is factually correct. Jake, if you disagree, then please 
provide some citations.

Irit: it is ridiculous to describe a two paragraph (nine line) note as 
"a statistics textbook". That is an exaggerated position that doesn't 
help the discussion. It's not a textbook, it is a short note that helps 
users whose knowledge of statistics is naive to understand which 
statistic is better for them.

"If someone doesn't know whether they need the mean or the median, they 
really need to read a more fundamental text before writing their code."

I totally disagree. This module is not intended only for statisticians 
and experts, and the user who isn't sure which average to use shouldn't 
have to read a textbook on the fundamentals of statistics.

--

___
Python tracker 

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



[issue32112] Should uuid.UUID() accept another UUID() instance?

2020-12-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



[issue42680] unicode identifiers not accessible or assignable through globals()

2020-12-18 Thread Martin Chase

New submission from Martin Chase :

This behavior is best described by the code below:

```
>>> meow = 1
>>> 'meow' in globals()
True
>>> µmeow = 1e-6
>>> 'µmeow' in globals()
False
>>> globals()['woof'] = 1
>>> woof
1
>>> globals()['µwoof'] = 1e-6
>>> µwoof
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'μwoof' is not defined
>>> import sys
>>> sys.getdefaultencoding()
'utf-8'
>>> [(k, bytes(k, 'utf-8')) for k in globals()]
..., ('μmeow', b'\xce\xbcmeow'), ('µwoof', b'\xc2\xb5woof')]
>>> 'µ'.encode('utf-8')
b'\xc2\xb5'
```

Testing was done on linux and windows, variously using 3.6.12, 3.7.6, 3.8.6 and 
3.9.0+.

--
components: Unicode
messages: 383336
nosy: ezio.melotti, outofculture, vstinner
priority: normal
severity: normal
status: open
title: unicode identifiers not accessible or assignable through globals()
type: behavior
versions: Python 3.6, 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



[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread Karl Nelson


Karl Nelson  added the comment:

Can you be so kind as pointing me to a LoadLibraryExW detour example for 
Python?   I have shimmed a DLL before to capture transaction logs in the past, 
but not with a Python or a system library.

--

___
Python tracker 

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



[issue42680] unicode identifiers not accessible or assignable through globals()

2020-12-18 Thread Martin Chase

Martin Chase  added the comment:

Oh, I just gave a cursory using `locals()`, and the same misbehavior is present.

A workaround, for anyone needing to assign or access unicode globals, is to use 
`exec`, e.g. `exec("µmeow = 1e-6", globals())`.

--

___
Python tracker 

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



[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread William Pickard


William Pickard  added the comment:

https://www.microsoft.com/en-us/research/project/detours/

--

___
Python tracker 

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



[issue1289136] distutils extension library path bug on cygwin

2020-12-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> out of date
stage: needs patch -> resolved
status: pending -> closed

___
Python tracker 

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



[issue42680] unicode identifiers not accessible or assignable through globals()

2020-12-18 Thread Steven D'Aprano

Steven D'Aprano  added the comment:

I'm pretty sure this is not a bug, but is working as designed.

The interpreter normalises unicode identifiers, but key lookup in the dict does 
not.

Sorry, I don't have time right now to give a more detailed answer, but there 
are two distinct mu characters:

μ U+03BC
µ U+00B5

and my prediction is that the identifier is normalised to the first, the actual 
Greek mu, but you are looking up the second, the micro sign.

(I'll be able to give a longer response in a couple of hours, if still needed.)

--
nosy: +steven.daprano

___
Python tracker 

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



[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2020-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 51f4688254ebb7b30215de424360ba5c92c63fe8 by Raymond Hettinger in 
branch 'master':
bpo-34805:  Guarantee that __subclasses__() is in definition order. (GH-23844)
https://github.com/python/cpython/commit/51f4688254ebb7b30215de424360ba5c92c63fe8


--

___
Python tracker 

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



[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2020-12-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +22714
pull_request: https://github.com/python/cpython/pull/23850

___
Python tracker 

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



[issue42670] Missing word in itertools.product

2020-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset eef33e6d49d05aad4111da4ad2d9cb34e7a5206c by Miss Islington (bot) 
in branch '3.9':
bpo-42670: Fix a missing word in the itertools.product() docs (GH-23823) 
(GH-23824)
https://github.com/python/cpython/commit/eef33e6d49d05aad4111da4ad2d9cb34e7a5206c


--
nosy: +rhettinger

___
Python tracker 

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



[issue42670] Missing word in itertools.product

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

FWIW, Allen Downey also had concerns about this wording.

--

___
Python tracker 

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



[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee: docs@python -> steven.daprano

___
Python tracker 

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



[issue42681] mistake in curses documentation

2020-12-18 Thread Robert T McQuaid


New submission from Robert T McQuaid :

The description of color_pair starts with

curses.color_pair(color_number)

It should be

curses.color_pair(pair_number)

--
assignee: docs@python
components: Documentation
messages: 383344
nosy: arbor, docs@python
priority: normal
severity: normal
status: open
title: mistake in curses documentation
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



[issue23522] Misleading note in Statistics module documentation

2020-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
Removed message: https://bugs.python.org/msg383343

___
Python tracker 

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



[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-18 Thread Tillmann Karras


Change by Tillmann Karras :


--
nosy:  -Tilka

___
Python tracker 

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



[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 5646414ae1fce620b919056f7999dfd15da78e9c by Raymond Hettinger in 
branch 'master':
bpo-42559: Not that getrandbits() is non-negative. (GH-23843)
https://github.com/python/cpython/commit/5646414ae1fce620b919056f7999dfd15da78e9c


--

___
Python tracker 

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



[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +22715
pull_request: https://github.com/python/cpython/pull/23851

___
Python tracker 

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



[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-12-18 Thread Dong-hee Na


Dong-hee Na  added the comment:

@mdk

No https://github.com/python/python-docs-theme/pull/57 must be fixed ;)

--

___
Python tracker 

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



  1   2   >