[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-04 Thread Petter S
Petter S added the comment: The solution is incomplete because it fixes just this single security issue, not the inherent fragility of this file. If, in the future someone happens to add another method starting with open to this class, we are at risk of having the same problem again. As fo

[issue39470] Indicate that os.makedirs is equivalent to Path.mkdir

2020-05-04 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue40504] Restore weakref support for lru_cache wrappers

2020-05-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : The pure python version of lru_cache() wrappers supported weak references. It's not essential, but I have used it a couple of times. In the spirit of PEP 399, the C version should add back the weakref support (and a test). -- components: Exten

[issue40500] test_multiprocessing_fork leaks processes on PPC64LE RHEL8 LTO + PGO 3.x

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Another example "PPC64LE RHEL8 LTO 3.x": https://buildbot.python.org/all/#/builders/356/builds/347 0:02:49 load avg: 9.54 [415/423/1] test_multiprocessing_spawn failed (env changed) (2 min 15 sec) -- running: test_concurrent_futures (58.1 sec), test_peg_gene

[issue40334] PEP 617: new PEG-based parser

2020-05-04 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 7.0 -> 8.0 pull_requests: +19226 pull_request: https://github.com/python/cpython/pull/19911 ___ Python tracker ___ _

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-04 Thread Christian Heimes
Christian Heimes added the comment: For the record, I'm quite unhappy that xml.etree.cElementTree was removed without going through a proper active deprecation cycle with plenty of head start. The removal came as a surprise to me -- and I'm a core dev, author of PEP 594 and owner of the defu

[issue39946] Remove _PyThreadState_GetFrame

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > We use this function internally in some VM traceback grabbing code Would you mind to elaborate your use case? -- ___ Python tracker ___ __

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : On platforms which configure identifies as bi-arch platform, libdir is set to $[exec_prefix}/lib64, which results in the C extensions to get installed in e.g. /usr/local/lib64/python3.8/lib-dynload/. However, the getpath.c routines use a fixed "lib/pyt

[issue39946] Remove _PyThreadState_GetFrame

2020-05-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks! We use this function internally in some VM traceback grabbing code but the best solution looks to just be for us to adopt the patch to 3.9 on our interpreter until we're running on 3.9. -- nosy: +gregory.p.smith __

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just to clarify: the CONFIG_SITE script on OpenSUSE causes configure to use lib64, not the Python configure script itself. -- ___ Python tracker ___

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Hum, this issue seems to be specific to Fedora and SuSE. Did you open an issue on OpenSuSE bug tracker? > Looking at the master branch, this may already have been fixed for 3.9, since > a PLATLIBDIR variable is used instead. The patch would have to be backpo

[issue40499] asyncio.wait documentation on non-emptiness requirement lost in bpo-33649

2020-05-04 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40499] asyncio.wait documentation on non-emptiness requirement lost in bpo-33649

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 by Joel Rosdahl in branch 'master': bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900) https://github.com/python/cpython/commit/9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 --

[issue21596] asyncio.wait fails when futures list is empty

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 by Joel Rosdahl in branch 'master': bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900) https://github.com/python/cpython/commit/9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 --

[issue33649] asyncio docs overhaul

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 by Joel Rosdahl in branch 'master': bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900) https://github.com/python/cpython/commit/9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 --

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: No, I have not opened a bug report on OpenSUSE. Since the OS uses bi-arch throughout, using lib64 is the natural thing to use for libdir on the OS. I think the issue lies with getpath.c only, since it makes an assumption about the libdir config value, wh

[issue40504] Restore weakref support for lru_cache wrappers

2020-05-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: I can submit a PR. Just making sure I understand, is this essentially the desired behavior change? import weakref import functools if 0: from test.support import import_fresh_module functools = import_fresh_module('functools', blocked=['_functools'])

[issue40454] DEBUG kw to asyncio.run overrides DEBUG mode set elsewhere

2020-05-04 Thread Yury Selivanov
Yury Selivanov added the comment: Good catch. The function should be fixed to: _marker = object() def run(coro, *, debug=_marker): if debug is not _marker: loop.set_debug(debug) -- ___ Python tracker

[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2020-05-04 Thread Filipe Laíns
Filipe Laíns added the comment: Right, forgot about that. We can get the first argument name from inspect.signature and then fetch it from the get_type_hints dictionary, I don't know a better way to do it. -- ___ Python tracker

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

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 92a98ed97513c6e365ce8765550ea65d0ddc8cd7 by Dong-hee Na in branch 'master': bpo-1635741: Port syslog module to multiphase initialization (GH-19907) https://github.com/python/cpython/commit/92a98ed97513c6e365ce8765550ea65d0ddc8cd7 --

[issue40504] Restore weakref support for lru_cache wrappers

2020-05-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes. That is the desired behavior. Use Objects/setobject.c and Include/setobject.h as a model. -- ___ Python tracker ___ __

[issue40506] add support for os.Pathlike filenames in zipfile.ZipFile.writestr

2020-05-04 Thread Domenico Ragusa
New submission from Domenico Ragusa : ZipFile seems to support Pathlike objects pretty well, except in ZipFile.writestr. For example: >>> a = ZipFile(Path('test.zip'), 'w') # this works ok >>> a.write(Path('./foo.jpeg'), arcname=PurePath('/some/thing.jpeg')) # this >>> works as well >>> a.wri

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +19227 pull_request: https://github.com/python/cpython/pull/19912 ___ Python tracker _

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +19228 pull_request: https://github.com/python/cpython/pull/19913 ___ Python tracker ___ __

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 1e7e4519a8ddc2239101a0146d788c9161143a77 by Dennis Sweeney in branch 'master': bpo-40459: Fix NameError in platform.py (GH-19855) https://github.com/python/cpython/commit/1e7e4519a8ddc2239101a0146d788c9161143a77 -- nosy: +corona10 __

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
miss-islington added the comment: New changeset 8ddf91543890e38c76aa0029482c6f5f5c444837 by Miss Islington (bot) in branch '3.7': bpo-40459: Fix NameError in platform.py (GH-19855) https://github.com/python/cpython/commit/8ddf91543890e38c76aa0029482c6f5f5c444837 --

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
miss-islington added the comment: New changeset efc782d29e229924076ffb6645a72f26242fb3ef by Miss Islington (bot) in branch '3.8': bpo-40459: Fix NameError in platform.py (GH-19855) https://github.com/python/cpython/commit/efc782d29e229924076ffb6645a72f26242fb3ef --

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-05-04 Thread wyz23x2
wyz23x2 added the comment: OK. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue40316] Add zero function to time, datetime, which acts as the use case of replace to limit resolution

2020-05-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I like the answer in the StackOverflow link better than this proposal. At any rate, I think Terry's suggestion is a good one. If you would like to move forward with this, please take it to python-ideas. That said, if another core-dev wants to champ

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 5.0 -> 6.0 pull_requests: +19229 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19914 ___ Python tracker

[issue40286] Add randbytes() method to random.Random

2020-05-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset f01d1be97d740ea0369379ca305646a26694236e by Raymond Hettinger in branch 'master': bpo-40286: Put methods in correct sections. Add security notice to use secrets for session tokens. (GH-19870) https://github.com/python/cpython/commit/f01d1be9

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-04 Thread Stefan Behnel
Stefan Behnel added the comment: Christian, I understand your complaint, but I've actually never seen code in the wild that didn't provide a fallback for the import, usually something like what Serhiy spelled out and explained above: try: import xml.etree.cElementTree as ET e

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-04 Thread Russell Davis
New submission from Russell Davis : To repro: >>> import os, sys >>> os.execv("nosuchfile", ["nosuchfile"]) Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2] No such file or directory >>> print(sys.last_value.filename) None -- components: Library (L

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-04 Thread Russell Davis
Change by Russell Davis : -- keywords: +patch pull_requests: +19230 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19915 ___ Python tracker ___ __

[issue40489] INCREF/DECREFs around the rich comparison needs tests

2020-05-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: xml.etree.cElementTree should be treated in the same way as cStringIO and cPickle -- they where separate modules in the past, but now the acceleration is used by default in io.StringIO and pickle. It looks an oversign that it was not removed in 3.0. xml.e

<    1   2