[issue41289] '%' character in help= for argparse causes ValueError: incomplete format

2020-07-13 Thread Eric V. Smith
Eric V. Smith added the comment: It's using normal %-formatting, so the rules applied are in https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting The last line of the last table in that section mentions literal % characters. I realize it's sort of hard to dig this

[issue33840] connection limit on listening socket in asyncio

2020-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: -Janae147 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33840] connection limit on listening socket in asyncio

2020-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg373589 ___ Python tracker ___ ___

[issue40746] test_gdb failing on 32-bit armv7l when built with GCC -Og (fail on Raspbian on 3.9, regression from 3.8)

2020-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: Note: 3.9.0b5, the last beta before 3.9.0, is next week. -- ___ Python tracker ___ ___

[issue41290] ipaddress module doesn't recognize 100.64.0.0/10 as a private network

2020-07-13 Thread Allayna Wilson
New submission from Allayna Wilson : import IPv4Address as n4 In [10]: n4('100.64.0.0/24').is_private Out[10]: False In [11]: n4('100.64.0.0/10').is_private

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Ned Deily
Change by Ned Deily : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Ned Deily
Ned Deily added the comment: So what is the plan to continue to support building cpython itself which depends on Distutils? Currently the build bootstraps itself without the aid of an existing Python interpreter instance. There would also be major impacts across the whole cpython

[issue41128] Signal handlers should not hang during blocked main thread

2020-07-13 Thread SilentGhost
Change by SilentGhost : -- nosy: +pitrou, serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41176] revise Tkinter mainloop dispatching flag behavior

2020-07-13 Thread E. Paine
E. Paine added the comment: Apologies, it is not waiting for the tcl queue and instead the call waits indefinitely for `Tcl_ConditionWait` (tkinter adds it to the queue and then waits for the command to finish executing). Do we need some mechanism to alert people after a second, for

[issue41290] ipaddress module doesn't recognize 100.64.0.0/10 as a private network

2020-07-13 Thread SilentGhost
SilentGhost added the comment: This was an intentional change, see #17400 and specifically commit 49e012e5492c1c70690ab72a8d03a980047148b5; so I'm going to close this issue as not a bug. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed

[issue33840] connection limit on listening socket in asyncio

2020-07-13 Thread Janae
Janae added the comment: All works are very interesting. thanks, to post and your works. https://apkgreat.com/fifa-14-apk/ -- nosy: +Janae147 ___ Python tracker ___

[issue41210] Docs: More description of reason about LZMA1 data handling with FORMAT_ALONE

2020-07-13 Thread Ma Lin
Ma Lin added the comment: It is better to raise a warning when using problematic combination. But IMO either "raising a warning" or "adding more description to doc" is too dependent on the implementation detail of liblzma. -- ___ Python tracker

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: Note: next week is 3.9.0b5, the last beta before 3.9.0. Please decide what to do with the rest of the issue before then. -- ___ Python tracker

[issue41290] ipaddress module doesn't recognize 100.64.0.0/10 as a private network

2020-07-13 Thread SilentGhost
Change by SilentGhost : -- components: -Extension Modules nosy: +pitrou versions: -Python 3.5, Python 3.6 ___ Python tracker ___

[issue41210] Docs: More description of reason about LZMA1 data handling with FORMAT_ALONE

2020-07-13 Thread Janae
Janae added the comment: Here is a BCJ only CFFI test project. https://apkgreat.com/fifa-14-apk/ All works are very interesting. thanks, to post and your works. -- nosy: +Janae147 ___ Python tracker

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: We have trouble finding a Windows expert with available time to address this :/ This is missing 3.8.4 as well. -- ___ Python tracker ___

[issue37095] [Feature Request]: Add zstd support in tarfile

2020-07-13 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.10 -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41013] test_os.test_memfd_create() fails on AMD64 FreeBSD Shared 3.x

2020-07-13 Thread Kubilay Kocak
Kubilay Kocak added the comment: I've updated the FreeBSD CURRENT buildbot past base/r363065 [1] which implements SHM_GROW_ON_WRITE: https://svnweb.freebsd.org/changeset/base/363065 https://reviews.freebsd.org/D25502 Also worth noting that I don't believe stable/12 (FreeBSD 12.x) will be

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread miss-islington
miss-islington added the comment: New changeset 57c984fab69b862563899d2c11da7d27201f4152 by Miss Islington (bot) in branch '3.9': bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) https://github.com/python/cpython/commit/57c984fab69b862563899d2c11da7d27201f4152 --

[issue41045] f-string's "debug" feature is undocumented

2020-07-13 Thread Rajarishi Devarajan
Change by Rajarishi Devarajan : -- keywords: +patch pull_requests: +20612 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21464 ___ Python tracker

[issue41284] High Level API for json file parsing

2020-07-13 Thread Inada Naoki
Inada Naoki added the comment: (Off topic) There is a very common mistake in this code: ``` with oepn(filepath, 'r') as f: data = json.load(f) ``` JSON file is encoded in UTF-8. But the default text encoding is locale encoding. You should do this instead: ``` with oepn(filepath, 'rb')

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread Christian Heimes
Change by Christian Heimes : -- title: Pickle crashes unpickling invalig NEWOBJ_EX opcode -> Pickle crashes unpickling invalid NEWOBJ_EX opcode ___ Python tracker ___

[issue41292] Dead link in Windows FAQ

2020-07-13 Thread Michel Samia
Change by Michel Samia : -- keywords: +patch pull_requests: +20610 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21463 ___ Python tracker ___

[issue37237] python 2.16 from source on Ubuntu 18.04

2020-07-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20607 pull_request: https://github.com/python/cpython/pull/21460 ___ Python tracker ___

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20606 pull_request: https://github.com/python/cpython/pull/21459 ___ Python tracker ___

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread miss-islington
miss-islington added the comment: New changeset 4f309abf55f0e6f8950ac13d6ec83c22b8d47bf8 by Serhiy Storchaka in branch 'master': bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) https://github.com/python/cpython/commit/4f309abf55f0e6f8950ac13d6ec83c22b8d47bf8 --

[issue41285] memoryview does not support subclassing

2020-07-13 Thread Inada Naoki
Inada Naoki added the comment: Would you be more specific about why you need that feature on the Python-ideas mailing list or "Ideas" category on discuss.python.org? -- nosy: +inada.naoki ___ Python tracker

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20609 pull_request: https://github.com/python/cpython/pull/21462 ___ Python tracker ___

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20608 pull_request: https://github.com/python/cpython/pull/21461 ___ Python tracker ___

[issue41291] Race conditions when opening and deleting a file on Mac OS X

2020-07-13 Thread Giovanni Pizzi
New submission from Giovanni Pizzi : Hello, when creating deleting (with `os.remove`/`os.unlink`) a file and opening it in a different process at (almost) the same time, on Mac OS X relatively often I get a file that is empty instead of either a `FileNotFoundError` exception, or an open

[issue37237] python 2.16 from source on Ubuntu 18.04

2020-07-13 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 ___

[issue41292] Dead link in Windows FAQ

2020-07-13 Thread Michel Samia
New submission from Michel Samia : In https://github.com/python/cpython/blob/master/Doc/faq/windows.rst, the link "https://anthony-tuininga.github.io/cx_Freeze/; is dead. The new valid URL is probably https://cx-freeze.readthedocs.io/en/latest/ -- assignee: docs@python components:

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread Ned Deily
Ned Deily added the comment: Sounds like a good idea. -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread miss-islington
miss-islington added the comment: New changeset f56c75ed53dcad4d59dff4377ae463d6b96acd3e by Miss Islington (bot) in branch '3.8': bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) https://github.com/python/cpython/commit/f56c75ed53dcad4d59dff4377ae463d6b96acd3e --

[issue41288] Pickle crashes unpickling invalig NEWOBJ_EX opcode

2020-07-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Pickle crashes using a crafted datetime object -> Pickle crashes unpickling invalig NEWOBJ_EX opcode ___ Python tracker ___

[issue41013] test_os.test_memfd_create() fails on AMD64 FreeBSD Shared 3.x

2020-07-13 Thread Kyle Evans
Kyle Evans added the comment: I can confirm that neither 12 nor 11 will be getting memfd_create; file sealing is a little more complicated to MFC, and I don't want to provide memfd_create in a place where it can't be paired with file sealing in case applications assume they come

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread Christian Heimes
Christian Heimes added the comment: Ned, would you like to get this fix backported to 3.6 and 3.7? -- nosy: +ned.deily versions: +Python 3.8, Python 3.9 ___ Python tracker

[issue41045] f-string's "debug" feature is undocumented

2020-07-13 Thread Rishi
Rishi added the comment: Hello all, Could I help by adding this to the documentation ? -- nosy: +rishi93 ___ Python tracker ___

[issue41045] f-string's "debug" feature is undocumented

2020-07-13 Thread Rajarishi Devarajan
Rajarishi Devarajan added the comment: Thank you very much. I have made a pull request. Looking forward to your review on my first open-source contribution :) -- ___ Python tracker

[issue41288] Pickle crashes using a crafted datetime object

2020-07-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20605 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21458 ___ Python tracker

[issue41045] f-string's "debug" feature is undocumented

2020-07-13 Thread Eric V. Smith
Eric V. Smith added the comment: @rishi93: yes, please do! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Paul Ganssle
Paul Ganssle added the comment: > So what is the plan to continue to support building cpython itself which > depends on Distutils? Currently the build bootstraps itself without the aid > of an existing Python interpreter instance. There would also be major impacts > across the whole cpython

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread Ned Deily
Ned Deily added the comment: New changeset 6463cf07fef7a923a743fcaf312150c45fd81b64 by Miss Islington (bot) in branch '3.6': bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) (GH-21462) https://github.com/python/cpython/commit/6463cf07fef7a923a743fcaf312150c45fd81b64

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29778] [CVE-2020-15523] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-07-13 Thread Steve Dower
Steve Dower added the comment: Correction: the original discovery credit goes to Eran Shimony and Ido Hoorvitch from CyberArk. -- ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Steve Dower
Steve Dower added the comment: Deprecating in 3.10 is fine - everyone who needs to know about it releases whenever they like anyway, so we just need to make _some_ announcement. I'd propose either moving it to Tools/distutils, or renaming it to _distutils. The point is that we're saying

[issue40219] ttk LabeledScale: label covered by hidden element

2020-07-13 Thread E. Paine
Change by E. Paine : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: It's too late to add a new deprecation in the Python 3.9 cycle. Next week is the *last* beta release. Most beta testing already took place. -- ___ Python tracker

[issue41288] Pickle crashes unpickling invalid NEWOBJ_EX opcode

2020-07-13 Thread Ned Deily
Ned Deily added the comment: New changeset 620e276a8c1d53332fbf08d369be87f862b6949d by Miss Islington (bot) in branch '3.7': bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) (GH-21461) https://github.com/python/cpython/commit/620e276a8c1d53332fbf08d369be87f862b6949d

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Donald Stufft
Donald Stufft added the comment: Maybe it would make sense to remove distutils from the name completely, _buildutils or something. Dunno, seems like it might be reasonable just to further separate it from the concept of "distutils" the public library. --

[issue40219] ttk LabeledScale: label covered by hidden element

2020-07-13 Thread E. Paine
Change by E. Paine : -- pull_requests: +20613 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21467 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Brett Cannon
Brett Cannon added the comment: FYI PEP 387 (which I expect will be accepted once I catch up from vacation) specified deprecations are to be public for two releases before removal or approval from the SC for a shorter cycle. So if distutils is deprecated in 3.10 then it can be removed in

[issue41293] fix confusing example in hashlib docs

2020-07-13 Thread Pavel Trukhanov
Change by Pavel Trukhanov : -- type: -> enhancement versions: +Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue41293] fix confusing example in hashlib docs

2020-07-13 Thread Pavel Trukhanov
New submission from Pavel Trukhanov : The documentation found in https://docs.python.org/3/library/hashlib.html#hash-algorithms give us the following two examples: ``` For example, to obtain the digest of the byte string b'Nobody inspects the spammish repetition': >>> >>> import hashlib

[issue32192] Provide importlib.util.lazy_import helper function

2020-07-13 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 8dd32fe645c9503cf8e6be4b1580c3a59b450168 by Joannah Nanjekye in branch 'master': bpo-32192: A basic lazy importer example (GH-21330) https://github.com/python/cpython/commit/8dd32fe645c9503cf8e6be4b1580c3a59b450168 --

[issue41294] Allow '__qualname__' to be an instance of 'DynamicClassAttribute'

2020-07-13 Thread William Pickard
New submission from William Pickard : Currently within Python, the attribute '__qualname__' is restricted to only be a string valued attribute. This makes is rather cumbersome for anyone who wants to implement '__qualname__' as a property, instead of a plain attribute (especially if

[issue41293] fix confusing example in hashlib docs

2020-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +christian.heimes, gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list

[issue32695] tarfile.open() raises TypeError when using compresslevel parameter with LZMA

2020-07-13 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 1.0 -> 2.0 pull_requests: +20614 pull_request: https://github.com/python/cpython/pull/21470 ___ Python tracker ___

[issue40978] Document that typing.SupportsXXX protocols are runtime checkable

2020-07-13 Thread ramalho
ramalho added the comment: After experimenting with theses protocols, I believe the user community is better served by leaving undocumented the fact that they are runtime checkable, because their runtime results are inconsistent with how Mypy handles them, producing both false positives and

[issue41045] f-string's "debug" feature is undocumented

2020-07-13 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41287] __doc__ attribute is not set in property-derived classes

2020-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: What would you expect this to print? class Property(property): 'custom docstring' print(Property(None, None, None, "hello").__doc__) -- nosy: +rhettinger ___ Python tracker

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2020-07-13 Thread Aron Podrigal
Change by Aron Podrigal : -- pull_requests: +20604 pull_request: https://github.com/python/cpython/pull/21457 ___ Python tracker ___