[issue44422] threading.enumerate(): reentrant call during a GC collection hangs

2021-06-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +25317 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26727 ___ Python tracker ___ _

[issue44422] threading.enumerate(): reentrant call during a GC collection hangs

2021-06-14 Thread STINNER Victor
STINNER Victor added the comment: There are different ways to fix this issue: * (A) Rewrite threading.enumerate() in C with code which cannot trigger a GC collection * (B) Disable temporarily the GC * (C) Use a reentrant lock (PR 26727) (A) The problem is that functions other than threading.

[issue41930] Wrap sqlite3_serialize API in sqlite3 module

2021-06-14 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25318 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26728 ___ Python tracker __

[issue31643] test_uuid: test_getnode and test_windll_getnode fail if connected to the Internet via an Android phone

2021-06-14 Thread Irit Katriel
Change by Irit Katriel : -- keywords: -patch versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker __

[issue41930] Wrap sqlite3_serialize API in sqlite3 module

2021-06-14 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > What would be the use case for this? Quoting D. Richard Hipp, from the sqlite-users mailing list, 2018-03-18, FWIW: These APIs support the concept of using small databases (small enough to fit in memory) as a container for passing information around.

[issue44421] random.uniform() hangs will eating up all available RAM

2021-06-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Christian, For future reference, here are some good guidelines for submitting bug reports and asking for help to debug your code: https://stackoverflow.com/help/minimal-reproducible-example http://www.sscce.org/ -- nosy: +steven.daprano __

[issue44420] Add CapWords classes to datetime module?

2021-06-14 Thread Douglas Thor
Douglas Thor added the comment: Thanks for correcting the version selection. > the old names could never be removed ... it's not worth the hassle I had the same thought, so I spent a lot of time trying to come up with "Benefits", haha. I'm OK with this being closed as rejected. Is there a s

[issue44420] Add CapWords classes to datetime module?

2021-06-14 Thread Eric V. Smith
Eric V. Smith added the comment: I suggest you close it. If you want some broader discussion, you should bring it up on the python-ideas mailing list, but I don't expect you'll get much support. -- ___ Python tracker

[issue44420] Add CapWords classes to datetime module?

2021-06-14 Thread Douglas Thor
Douglas Thor added the comment: Thanks for the info! Rejecting issue, as it would not be feasible to maintain going forward. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue25682] __package__ not set to None under pdb in Python 3

2021-06-14 Thread Keith Prussing
Keith Prussing added the comment: Caveat: It's been a few years so I'm trying to recall what I was doing at the time and what my original problem was. I understand and expect pdb to populate __package__ and __main__ to be what it expects when run as a module with -m. However, I believe my e

[issue37880] For argparse add_argument with action='store_const', const should default to None.

2021-06-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25682] __package__ not set to None under pdb in Python 3

2021-06-14 Thread Irit Katriel
Irit Katriel added the comment: Thanks Keith. Closing and we can look into it if someone else has an issue. -- stage: -> resolved status: open -> closed ___ Python tracker __

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Victor Stinner] > My plan is to merge changes which have no significant > impact on performances FWIW, PyFloat_FromDouble() is the most performance critical function in floatobject.c. -- ___ Python tracker

[issue44365] Bad dataclass post-init example

2021-06-14 Thread Andrei Kulakov
Andrei Kulakov added the comment: How about this example: @dataclass class Rect: x: int y: int r=Rect(5,2) @dataclass class HyperRect(Rect): z: int def __post_init__(self): self.vol = self.x*self.y*self.z hr=HyperRect(5,2,3) print("hr.vol", hr.vol) Hyper Rectangle:

[issue44423] copy2 / sendfile fails on linux with large file

2021-06-14 Thread karl
New submission from karl : by copy a large file e.g. -rwxrwxr-x 1 1002 1001 5359338160 Feb 9 2019 xxx_file_xxx.mdx copy2 / sendfile / fastcopy fails with: Traceback (most recent call last): File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker result = (True, func(*a

[issue44392] Py_GenericAlias is not documented

2021-06-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why should this be deprecated at all? The API is a convenient way to add ``__class_getitem__`` in a way that is consistent with the implementation for builtin types and the stdlib. I noticed the lack of documentation when I worked on implementing this for

[issue44310] Document that lru_cache uses hard references

2021-06-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +25319 pull_request: https://github.com/python/cpython/pull/26731 ___ Python tracker ___ ___

<    1   2