[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: We should whitelist the protocols. The current solution with `getattr` is really fragile. For example, this crashes with a `TypeError`: `URLopener().open("unknown_proxy://test")` -- nosy: +Petter S ___ Python tracker

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2020-05-04 Thread Chris Jerdonek
Change by Chris Jerdonek : -- keywords: +patch pull_requests: +19207 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19896 ___ Python tracker ___

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2020-05-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: I proposed a PR to fix this: https://github.com/python/cpython/pull/19896 -- ___ Python tracker ___

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

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: I can crash python interpreter with few lines of code when if we remove those codes. class S(str): def __eq__(self, other): d.clear() return NotImplemented def __hash__(self): return hash('test') d = {S(): 'value'} 'test' in

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

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: Would you like to add a test for this case? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: tl; dr I wrote PR 19902 to remove the "XXX" comment. -- Commit 21893fbb74e8fde2931fbed9b511e2a41362b1ab adds the following code: /* XXX It seems like we shouldn't have to check not equal to Py_None here because exc_type should only ever be a

[issue40455] GCC 10 compiler warnings

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset b88cd585d36d6285a5aeb0b6fdb70c134062181e by Dong-hee Na in branch 'master': bpo-40455: Remove gcc10 warning about x_digits (#19852) https://github.com/python/cpython/commit/b88cd585d36d6285a5aeb0b6fdb70c134062181e --

[issue40458] test_bad_getattr crashes on APPX test

2020-05-04 Thread Steve Dower
Steve Dower added the comment: Yeah, I already got that part. If you check the PR, I added some better diagnostics to faulthandler for this case, but I don't see where I can add it for other platforms? -- ___ Python tracker

[issue40494] collections.abc.Callable and type variables

2020-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Of course. There is more than one way to fix it: * Make GenericAlias substituting type variables in list. It is easier and it will fix this particular case, but there will be subtle differences in __args__. * Add a GenericAlias subclass with overridden

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Lumír Balhar
Lumír Balhar added the comment: I forgot to mention that I am working on PR which should be ready soon because the implementation is already done and tested in compileall2. -- ___ Python tracker

[issue40498] Holding spacebar on button widget permanently makes it SUNKEN even after release (and wait).

2020-05-04 Thread PythonAmateur742
PythonAmateur742 added the comment: This is a win10 issue. I haven't tried it on linux. -- ___ Python tracker ___ ___

[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-05-04 Thread Steve Dower
Steve Dower added the comment: I assume the Bootcamp side of this is irrelevant and it's just an issue with Windows. Yusuf, can you open Powershell and run "py" on its own? If you've been going there and running "python" and you didn't select to update PATH, you're probably triggering the

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2020-05-04 Thread Zachary Ware
Zachary Ware added the comment: With 2.7 out of support, closing. -- nosy: +zach.ware resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue32030] PEP 432: Rewrite Py_Main()

2020-05-04 Thread Gregory Szorc
Change by Gregory Szorc : -- nosy: +indygreg nosy_count: 7.0 -> 8.0 pull_requests: +19218 pull_request: https://github.com/python/cpython/pull/19746 ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread miss-islington
miss-islington added the comment: New changeset 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1 by Miss Islington (bot) in branch '3.8': bpo-40135: Fix multiprocessing test_shared_memory_across_processes() (GH-19892) https://github.com/python/cpython/commit/70fe95cdc9ac1b00d4f86b7525dca80caf7003e1

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Issue open since 2019-09-30 and tests still hang randomly. What's the progress on this issue? -- ___ Python tracker ___

[issue40455] GCC 10 compiler warnings

2020-05-04 Thread Andy Lester
Andy Lester added the comment: For anyone following along, note that the PR above is different than the original suggestion. The PR correctly sets x_size, not leaving it zero. -- ___ Python tracker

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-04 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: -lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40494] collections.abc.Callable and type variables

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, the fix will require a variant of types.GenericAlias that substitute's type variables in lists. -- ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset caa3ef284a2e5e5b9bdd6a9e619804122c842d80 by Hai Shi in branch 'master': bpo-40135: Fix multiprocessing test_shared_memory_across_processes() (GH-19892) https://github.com/python/cpython/commit/caa3ef284a2e5e5b9bdd6a9e619804122c842d80

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 5e8ffe147710e449c2e935a4e2ff5cbd19828a8a by Hai Shi in branch 'master': bpo-39573: Use Py_IS_TYPE to check for types (GH-19882) https://github.com/python/cpython/commit/5e8ffe147710e449c2e935a4e2ff5cbd19828a8a --

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

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: > Would you like to add a test for this case? Oh, I mean, is it good to add a test for this case? -- ___ Python tracker ___

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19216 pull_request: https://github.com/python/cpython/pull/19902 ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Hai Shi! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19217 pull_request: https://github.com/python/cpython/pull/19903 ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e10e7c771bf06112c4a311e0ef6b8af6423b0cca by Lysandros Nikolaou in branch 'master': bpo-40334: Spacialized error message for invalid args after bare '*' (GH-19865)

[issue40408] GenericAlias does not support nested type variables

2020-05-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > But this behavior is not specified and is not covered by tests. FWIW, to be most close to the static type checkers behavior, both D[int][str] and D[int, str] should fail for D = Dict[T, List]. Not important however, since this is a really rare corner

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

2020-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue1517. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-04 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: The revert is in. Now the question is if we want to take additional action to address the original issue of this. -- ___ Python tracker

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-04 Thread Miro Hrončok
Miro Hrončok added the comment: I will soon come back with what Fedora package were affected by the problem. That could give some data about how to handle this. -- ___ Python tracker

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

2020-05-04 Thread Joel Rosdahl
New submission from Joel Rosdahl : bpo-21596 documented that the sequence of futures passed to asyncio.wait must not be empty: The sequence *futures* must not be empty. This note was however lost in the bpo-33649 commit (3faaa8857a42a36383bb18425444e597fc876797). -- assignee:

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is wrong with the current behavior? Why does the case of hexadecimal digits matter? There are no options to repr() to control the case of hexadecimal digits in and '\ufffe', and I doubt there are such options in other functions producing

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Lumír Balhar
New submission from Lumír Balhar : We would like to include a possibility of hardlink deduplication of identical pyc files to compileall module in Python 3.9. We've discussed the change [0] and tested it in Fedora RPM build system via implementation in the compileall2 module [1]. The

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40496] re.findall() takes a long time (100% cup usage) on Python 3.6.10

2020-05-04 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I don't think this is a deadlock rather it is certainly related to the number of '*' there is in your pattern, the regexp has to search an exponentially growing number of patterns. You could try a simple pattern to match your attribute and it should be

[issue40497] subprocess.check_output() accept the check keyword argument

2020-05-04 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Now a reviewer has to check that a developer uses the validate_result() > function *and* the developer is not passing validate=False into the function. Fair enough, I updated the PR to raise ValueError instead. --

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

2020-05-04 Thread STINNER Victor
New submission from STINNER Victor : PPC64LE RHEL8 LTO + PGO 3.x: https://buildbot.python.org/all/#/builders/450/builds/313 0:01:22 load avg: 7.01 [242/423/1] test_multiprocessing_fork failed (env changed) (1 min 17 sec) -- running: test_concurrent_futures (1 min 3 sec),

[issue40497] subprocess.check_output() accept the check keyword argument

2020-05-04 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The subprocess.check_output() raises TypeError when given the `check` keyword-argument: Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>

[issue40497] subprocess.check_output() accept the check keyword argument

2020-05-04 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > check_output() should not accept check=False. I thought about raising ValueError instead but `subprocess.check_output([...], check=False)` is actually a convenient shortcut over `subprocess.run([...], stdout=subprocess.PIPE).stdout` and I can't think of much

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is worth to fix and it should be not difficult to fix. Either make the output file name absolute before executing the script, or open the output file before executing the script (what is easier). Unless I miss something. -- nosy:

[issue40498] Holding spacebar on button widget permanently makes it SUNKEN even after release (and wait).

2020-05-04 Thread PythonAmateur742
New submission from PythonAmateur742 : See my Stack Overflow question for an example code. https://stackoverflow.com/questions/61588397/problems-with-tkinter-button-bindings-and-behaviour Reproduction: 1. create a single button (even without command) 2. Use tab to navigate to the button. 3.

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 846d8b28ab9bb6197ee81372820311c0abe509c0 by Lysandros Nikolaou in branch 'master': bpo-40246: Revert reporting of invalid string prefixes (GH-19888) https://github.com/python/cpython/commit/846d8b28ab9bb6197ee81372820311c0abe509c0

[issue33453] from __future__ import annotations breaks dataclasses ClassVar and InitVar handling

2020-05-04 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Lumír Balhar
Change by Lumír Balhar : -- keywords: +patch pull_requests: +19214 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19901 ___ Python tracker ___

[issue40494] collections.abc.Callable and type variables

2020-05-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Here I think the behavior of typing.Callable is correct. -- ___ Python tracker ___ ___

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Christian Heimes
Christian Heimes added the comment: Brett, FYI -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40496] re.findall() deadlock on Python 3.6.10

2020-05-04 Thread Sergio Rael
New submission from Sergio Rael : I have found a deadlock using Python 3.6.10 that seems to have been solved on 3.7.x. probably related to capture groups. To reproduce the deadlock just do something like this: re.findall( '\[et_pb_image(?:\w|=|"|\d|\.|

[issue40497] subprocess.check_output() accept the check keyword argument

2020-05-04 Thread Christian Heimes
Christian Heimes added the comment: IMHO it's both confusing and bad API design to have a function like validate_result(..., validate=False) Now a reviewer has to check that a developer uses the validate_result() function *and* the developer is not passing validate=False into the

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

2020-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Not until decision made. And not be me until I have my development machine running. -- ___ Python tracker ___

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

2020-05-04 Thread wyz23x2
wyz23x2 added the comment: Patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Christian Heimes
Christian Heimes added the comment: Python's import system is fully compatible with this approach. importlib never directly writes to a .pyc file. Instead it always creates a new temporary file next to the .pyc file and then overrides the .pyc file with an atomic file system operation. See

[issue40497] subprocess.check_output() accept the check keyword argument

2020-05-04 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +19208 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19897 ___ Python tracker ___

[issue40497] subprocess.check_output() accept the check keyword argument

2020-05-04 Thread Christian Heimes
Christian Heimes added the comment: -1 check_output() should not accept check=False. Please only improve the error message. I would be fine with accepting check=True, too -- nosy: +christian.heimes stage: patch review -> ___ Python tracker

[issue40496] re.findall() takes a long time (100% cup usage) on Python 3.6.10

2020-05-04 Thread Sergio Rael
Sergio Rael added the comment: Sorry, this is not a deadlock. Python puts the CPU to 100% of usage, but it takes so long that a I didn't know if it can finish the task. -- title: re.findall() deadlock on Python 3.6.10 -> re.findall() takes a long time (100% cup usage) on Python

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-05-04 Thread Miro Hrončok
Change by Miro Hrončok : -- pull_requests: +19209 pull_request: https://github.com/python/cpython/pull/19898 ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-05-04 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: -cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39159] Ideas for making ast.literal_eval() usable

2020-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It can also crash. ast.literal_eval('+0'*10**6) The cause is that all AST handling C code (in particularly converting the AST from C to Python) is recursive, and therefore can overflow the C stack. Some recursive code has arbitrary limits which cause

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

2020-05-04 Thread Joel Rosdahl
Change by Joel Rosdahl : -- keywords: +patch nosy: +jrosdahl nosy_count: 2.0 -> 3.0 pull_requests: +19211 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19900 ___ Python tracker

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

2020-05-04 Thread Joel Rosdahl
Change by Joel Rosdahl : -- nosy: +jrosdahl nosy_count: 8.0 -> 9.0 pull_requests: +19212 pull_request: https://github.com/python/cpython/pull/19900 ___ Python tracker ___

[issue33649] asyncio docs overhaul

2020-05-04 Thread Joel Rosdahl
Change by Joel Rosdahl : -- nosy: +jrosdahl nosy_count: 14.0 -> 15.0 pull_requests: +19213 pull_request: https://github.com/python/cpython/pull/19900 ___ Python tracker ___

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39159] Ideas for making ast.literal_eval() usable

2020-05-04 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19899 ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-05-04 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: -hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-04 Thread Miro Hrončok
Miro Hrončok added the comment: Not that many: cpython itself (fixed via PR) demjson (fixed via PR) asn1crypto (fixed via PR) dnf (fixed via PR) freeipa (fixed via PR) I gave up sending PRs at this point. waf weasyprint virt-who thrift salt wxpython4 rosdistro mne pycairo libstoragemgmt

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Steve Dower
Steve Dower added the comment: Do you think either need a deprecation cycle? I'd say not for the Windows change, but I'm not sure whether people could be relying on libuuid showing up after build. -- ___ Python tracker

[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-04 Thread Tomasz Pytel
New submission from Tomasz Pytel : I found this by accident by compiling empty strings since I use column information from the AST tree, if not initialized I get a starting column of -842150451. The easy fix is to initialize n->n_col_offset = 0; in Parser/node.c:PyNode_New(). --

[issue40503] PEP 615: Add zoneinfo module

2020-05-04 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +19224 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19909 ___ Python tracker

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-05-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 18f1c60a1625d341a905c7e07367c32c08f222df by Miro Hrončok in branch 'master': bpo-40360: Add a What's New entry for lib2to3 pending deprecation (GH-19898) https://github.com/python/cpython/commit/18f1c60a1625d341a905c7e07367c32c08f222df

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

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: I suggest to raise an exception if it's called with more than 1024 arguments. -- keywords: +easy (C), newcomer friendly title: ctypes: segfault with large number of callback arguments -> [easy C issue] ctypes: segfault with large number of callback

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

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > We should whitelist the protocols. The current solution with `getattr` is > really fragile. For example, this crashes with a `TypeError`: > `URLopener().open("unknown_proxy://test")` Would you mind to elaborate why do you consider that the solution is

[issue40334] PEP 617: new PEG-based parser

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40480] "fnmatch" exponential execution time

2020-05-04 Thread Tim Peters
Tim Peters added the comment: Changed version to 3.9, because anything done would change the regexp generated, and fnmatch.translate()` makes that regexp visible. -- stage: -> needs patch versions: +Python 3.9 -Python 3.8 ___ Python tracker

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-05-04 Thread hongweipeng
Change by hongweipeng : -- nosy: +hongweipeng nosy_count: 9.0 -> 10.0 pull_requests: +19219 pull_request: https://github.com/python/cpython/pull/19904 ___ Python tracker ___

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-05-04 Thread Chris Meyer
Change by Chris Meyer : -- nosy: +cmeyer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40503] PEP 615: Add zoneinfo module

2020-05-04 Thread Paul Ganssle
New submission from Paul Ganssle : This is an issue to track the implementation of PEP 615: https://www.python.org/dev/peps/pep-0615/ It should mostly involve migrating from the reference implementation: https://github.com/pganssle/zoneinfo/ -- assignee: p-ganssle components:

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Lysandros: > The revert is in. Now the question is if we want to take additional action to > address the original issue of this. If someone cares of that, I suggest to open an issue in pylint, pyflakes and similar tools to emit a warning in linters.

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: uuid.py has a long history. The recent history is the addition of the _uuid module which exposes libuuid function properly. IMHO it's a better approach than ctypes. On Windows, it seems like ctypes remains used to get access to Windows function

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Steve Dower
Steve Dower added the comment: There are three scenarios where ctypes is used in this module: * get libuuid.uuid_generate_time_safe and uuid_generate_time (if _uuid was not compiled) * get rpcrt4.UuidCreateSequential (on Windows, depending on how the libuuid lookup failed) *

[issue40275] test.support has way too many imports

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 975408c065b645e7d717546b0d744415abb45cd1 by Hai Shi in branch 'master': bpo-40275: test.support imports lazily locale import (GH-19761) https://github.com/python/cpython/commit/975408c065b645e7d717546b0d744415abb45cd1 --

[issue40480] "fnmatch" exponential execution time

2020-05-04 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +19223 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19908 ___ Python tracker

[issue9216] FIPS support for hashlib

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > _hashlib.get_fips_mode() is not compatible with new FIPS design in OpenSSL > 3.0.0: I suggest to modify the code so the private function becomes unavailable in _hashlib on OpenSSL 3.0 and newer. What do you think? --

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Steve Dower
New submission from Steve Dower : The uuid module uses ctypes to try and load likely system libraries to provide some functionality of the uuid module. This is a security risk (depending on your sensitivity to DLL hijacking), but it also seems to be not very necessary? It would be nice to

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-04 Thread Brett Cannon
Brett Cannon added the comment: This can't be backported cleanly. If you're up for making PRs for 3.8 and 3.7, Robert, we can look at applying them. -- ___ Python tracker

[issue40275] test.support has way too many imports

2020-05-04 Thread hai shi
Change by hai shi : -- pull_requests: +19220 pull_request: https://github.com/python/cpython/pull/19905 ___ Python tracker ___ ___

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

2020-05-04 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19221 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19906 ___ Python tracker ___

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

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 785f5e6d674306052bf865677d885c30561985ae by Dong-hee Na in branch 'master': bpo-40489: Add test case for dict contain use after free (GH-19906) https://github.com/python/cpython/commit/785f5e6d674306052bf865677d885c30561985ae --

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

2020-05-04 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +19222 pull_request: https://github.com/python/cpython/pull/19907 ___ Python tracker ___

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-04 Thread Brett Cannon
Change by Brett Cannon : -- versions: -Python 3.5, Python 3.6, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > Do you think either need a deprecation cycle? I'd say not for the Windows > change, but I'm not sure whether people could be relying on libuuid showing > up after build. If the behavior doesn't change, no deprecation is needed. For example, if libuuid

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

2020-05-04 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset f25fb6ebfec894c01bc927c9aae7924ffc826d11 by Joannah Nanjekye in branch 'master': bpo-39470: Indicate that ``os.makedirs`` is equivalent to ``Path.mkdir`` (GH-18216)

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

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

[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

[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

[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

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-05-04 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +19225 pull_request: https://github.com/python/cpython/pull/19910 ___ Python tracker ___

[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

  1   2   >