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

2020-05-03 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 ___ _

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

2020-05-03 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

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

2020-05-03 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +19206 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19895 ___ Python tracker

[issue40493] Pegen can't parse some function type comments

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

[issue40493] Pegen can't parse some function type comments

2020-05-03 Thread miss-islington
miss-islington added the comment: New changeset 603d3546264149f323edb7952b60075fb6bc4dc2 by Shantanu in branch 'master': bpo-40493: fix function type comment parsing (GH-19894) https://github.com/python/cpython/commit/603d3546264149f323edb7952b60075fb6bc4dc2 -- nosy: +miss-islington

[issue40493] Pegen can't parse some function type comments

2020-05-03 Thread Shantanu
Change by Shantanu : -- keywords: +patch pull_requests: +19205 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19894 ___ Python tracker ___ ___

[issue40493] Pegen can't parse some function type comments

2020-05-03 Thread Shantanu
New submission from Shantanu : Currently fails if we don't have any arguments before *args and **kwargs ``` ~ λ python3.9 Python 3.9.0a6+ (heads/master:c95e691, May 3 2020, 19:57:46) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "license" for more informa

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

2020-05-03 Thread Anthony Sottile
New submission from Anthony Sottile : just spent quite a bit of time debugging this, here's a minimal example: ```bash # rm -rf a (if you want to reset) cd /tmp mkdir -p a/b echo 'import os; os.chdir("..")' > a/b/c.py cd a/b python3 -m cProfile -o log.pstats c.py ls -al ls -al .. ``` example o

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

2020-05-03 Thread hai shi
hai shi added the comment: The easy way to fix this test case is that don't define the shared memory block's name. `test_shared_memory_basics` has tested against the shared memory block's name, so canceling the shared memory block'name has no side-effect. --

[issue40491] Typo in SyntaxError produced by pegen for numeric literals

2020-05-03 Thread Shantanu
Change by Shantanu : -- keywords: +patch pull_requests: +19204 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19893 ___ Python tracker ___ ___

[issue40491] Typo in SyntaxError produced by pegen for numeric literals

2020-05-03 Thread Shantanu
New submission from Shantanu : ``` ~ λ python3.9 Python 3.9.0a6+ (heads/master:c95e691, May 3 2020, 19:57:46) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>> ast.parse("1_2", feature_version=(3, 5)) Tracebac

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

2020-05-03 Thread hai shi
Change by hai shi : -- keywords: +patch nosy: +shihai1991 nosy_count: 1.0 -> 2.0 pull_requests: +19203 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19892 ___ Python tracker ___

[issue40490] peg_generator module has unused imports

2020-05-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40490] peg_generator module has unused imports

2020-05-03 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +19202 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19891 ___ Python tracker

[issue40490] peg_generator module has unused imports

2020-05-03 Thread anthony shaw
New submission from anthony shaw : the tools/peg_generator package contains a number of unused imports -- components: Interpreter Core messages: 368005 nosy: anthonypjshaw, pablogsal priority: normal severity: normal stage: needs patch status: open title: peg_generator module has unused

[issue40334] PEP 617: new PEG-based parser

2020-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7f06af684a1882fdb19d20650825948b1d7996e5 by Lysandros Nikolaou in branch 'master': bpo-40334: Set error_indicator in _PyPegen_raise_error (GH-19887) https://github.com/python/cpython/commit/7f06af684a1882fdb19d20650825948b1d7996e5 -

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2020-05-03 Thread Kyle Stanley
Kyle Stanley added the comment: John Smith wrote: > The code works normally again if I remove the return statement from the > `run_coro` function. I am a bit surprised that the code works as intended simply by removing the return statement. Perhaps Yury or Andrew can clarify on that point.

[issue40480] "fnmatch" exponential execution time

2020-05-03 Thread Tim Peters
Tim Peters added the comment: "The trick" with this kind of pattern is that a `*` should consume as little as possible to allow the next fixed portion to match. Apply that at every stage, and it succeeds or it doesn't. Backtracking can't change that outcome. For, e.g., the shell pattern:

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

2020-05-03 Thread Furkan Onder
Furkan Onder added the comment: The issue continues in python 3.8.2. -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-l

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

2020-05-03 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: After Serhiy unlinked the linked PR, it did not happen again, so it may have been an one-off hiccup. I updated the description GH-19888 nevertheless. -- ___ Python tracker

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

2020-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: In the title -> in the description -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2020-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think that may be happening because you are still refering to this issue in the title of https://github.com/python/cpython/pull/19888? Not sure how the linkage is made, but if this keeps happening you may open an issue in the core-workflow repo in t

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

2020-05-03 Thread Raymond Hettinger
New submission from Raymond Hettinger : In Objects/dictobject.c, if I remove the INCREF/DECREF pair around PyObject_RichCompareBool(), all the tests still pass: - Py_INCREF(startkey); cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); - Py_DECREF(startkey);

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

2020-05-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -19201 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

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

2020-05-03 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: PRs keep getting linked to this issue under my name, without me doing anything. -- ___ Python tracker ___ ___

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

2020-05-03 Thread Yusuf Mumtaz
Yusuf Mumtaz added the comment: Hello, I have just updated to the new version of python 3.8.3. The problem still occurs however, now an interactive black window does appear when an attempt to open any Python file. -- ___ Python tracker

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

2020-05-03 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19201 pull_request: https://github.com/python/cpython/pull/19888 ___ Python tracker ___ __

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

2020-05-03 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I opened a pull request with an invalid bpo issue number so I unlinked it. Then a completely unrelated PR was is shown as linked by me, but I didn't do that. Unlinking that as well. -- ___ Python tracker

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

2020-05-03 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: -19200 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue27035] Cannot set exit code in atexit callback

2020-05-03 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: gwk, I absolutely agree; at this point that's the main thing I'm looking for. But it would be great if whoever adds that documentation could include the rationale for this behavior too. It still seems "obvious" to me that it should change the exit code, an

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

2020-05-03 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19200 pull_request: https://github.com/python/cpython/pull/19888 ___ Python tracker ___ __

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

2020-05-03 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: -19198 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2020-05-03 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +lys.nikolaou nosy_count: 3.0 -> 4.0 pull_requests: +19198 pull_request: https://github.com/python/cpython/pull/19888 ___ Python tracker ___

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

2020-05-03 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19199 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19888 ___ Python tracker ___ __

[issue27035] Cannot set exit code in atexit callback

2020-05-03 Thread George King
George King added the comment: I think we should change the documentation to expand the parenthetical " (unless SystemExit is raised)" to a complete explanation of that special case. -- ___ Python tracker _

[issue40334] PEP 617: new PEG-based parser

2020-05-03 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19197 pull_request: https://github.com/python/cpython/pull/19887 ___ Python tracker ___ __

[issue39643] Python calls newfstatat for "" in inspect

2020-05-03 Thread Ivan Babrou
Ivan Babrou added the comment: The issue in Salt should be fixed by the following PR: * https://github.com/saltstack/salt/pull/57062 Still, I think Python itself could do better. -- ___ Python tracker

[issue40488] setup.py shall search by default for libffi.so in /usr/local/lib64

2020-05-03 Thread Дилян Палаузов
New submission from Дилян Палаузов : With libffi 3.3 doing `./configure && make install` puts libffi.so in /usr/local/lib64/ . This can be found by pkgconfig. But setup.py neither uses pkgconfig, nor checks by default /usr/local/lib64 for libffi -- components: Build messages: 367990

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2020-05-03 Thread John Smith
John Smith added the comment: Additional note: In a almost identical set-up, the simple fact of assigning the task object to a variable: `task = loop.create_task(coroutine())` instead of just calling: `loop.create_task(coroutine())` ...results in the same unexpected behavior in exception

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2020-05-03 Thread John Smith
Change by John Smith : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2020-05-03 Thread John Smith
New submission from John Smith : Hi, I'm running the following code in a Jupyter notebook (so there is already a running loop). `run_coro` (non-async function) adds given coroutines to the loop with `loop.create_task`. I want to return the task objects created by `loop.create_task` to check

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no principal difference between Path.iterdir() and os.listdir(). Somebody can change the directory during iteration. The only difference is that in the latter case you iterate in C instead of Python, so it is less easy to catch a race condition. W

[issue38715] Regression in compileall ddir parameter when recursing

2020-05-03 Thread Filipe Laíns
Filipe Laíns added the comment: Nevermind! I ran it with my system python binary, which is patched to against this. -- ___ Python tracker ___ _

[issue38870] Expose ast.unparse in the ast module

2020-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 493bf1cc316b0b5bd90779ecd1132878c881669e by Batuhan Taskaya in branch 'master': bpo-38870: Don't start generated output with newlines in ast.unparse (GH-19636) https://github.com/python/cpython/commit/493bf1cc316b0b5bd90779ecd1132878c8816

[issue38715] Regression in compileall ddir parameter when recursing

2020-05-03 Thread Filipe Laíns
Filipe Laíns added the comment: Can this be closed? I can't reproduce. $ python -c 'from library.a.a import go; go()' Traceback (most recent call last): File "", line 1, in File "/usr/lib/a/a/__init__.py", line 2, in go raise AssertionError('dummy') AssertionError: dummy $ python -c 'f

[issue40480] "fnmatch" exponential execution time

2020-05-03 Thread Tim Peters
Tim Peters added the comment: Note that doctest has the same kind of potential problem with matching ellipsis (0 or more characters) in expected output blocks. Backtracking isn't needed at all to resolve patterns of that limited kind, but I don't think Python's re module supports enough gim

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-05-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou title: pathlib's iterdir doesn't expecify what happens if directory content change -> pathlib's iterdir doesn't specify what happens if directory content change ___ Python tracker

[issue40480] "fnmatch" exponential execution time

2020-05-03 Thread kleshni
kleshni added the comment: >So the solution is to replace multiple asterisks with a single one No, this is not a solution. This glob also hangs: fnmatch.fnmatchcase("a" * 32, "*a" * 16 + "b") And again, Bash and SQLite 3 work perfectly. -- ___ Pyt

[issue40486] pathlib's iterdir doesn't expecify what happens if directory content change

2020-05-03 Thread Facundo Batista
New submission from Facundo Batista : Documentation for Path.iterdir ( https://docs.python.org/3/library/pathlib.html#pathlib.Path.iterdir ) doesn't specify what happens when the directory change. This is important, as the function does NOT return a list (which would imply that a "snapshot"

[issue40485] Provide an abstraction for a select-able Event

2020-05-03 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue40482] _hashlib: register Python names as OpenSSL aliases

2020-05-03 Thread Christian Heimes
Christian Heimes added the comment: Yes, it changes the global state of libcrypto. I consider the risk to other application slim to non-existing. Two cases are problematic: 1) an application relies on the fact that EVP_get_digestbyname("sha3_256") fails. 2) an application also uses EVP_add_

[issue40482] _hashlib: register Python names as OpenSSL aliases

2020-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Adding aliases in openssl is presumably process global right? Is that wise given it'd mean other openssl using c/c++ code in the process would now see the same aliases and could behave differently when used with python vs without? On Sun, May 3, 2020, 3:55 A

[issue40334] PEP 617: new PEG-based parser

2020-05-03 Thread Miro Hrončok
Miro Hrončok added the comment: Ah, sorry, I got it mixed up. Reported there. -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2020-05-03 Thread Miro Hrončok
Miro Hrončok added the comment: We also get: File "/usr/lib/python3.9/site-packages/dnf/comps.py", line 111 return'.'.join(lcl) ^ SyntaxError: invalid string prefix -- nosy: +hroncok ___ Python tracker

[issue40452] IDLE preserve clipboard on closure (Windows)

2020-05-03 Thread E. Paine
Change by E. Paine : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40468] IDLE split "general" into two tabs

2020-05-03 Thread E. Paine
Change by E. Paine : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40334] PEP 617: new PEG-based parser

2020-05-03 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: This isn't related to this issue, but to bpo-40246. Please report it there as well. -- ___ Python tracker ___ __

[issue40485] Provide an abstraction for a select-able Event

2020-05-03 Thread Faidon Liambotis
New submission from Faidon Liambotis : In certain codebases, it's useful to be able to wait for input from one or more file descriptors (e.g. a socket), while at the same time waiting for an event triggered by another thread, or perhaps multiprocessing process. To wait for one or more file de

[issue40334] PEP 617: new PEG-based parser

2020-05-03 Thread Miro Hrončok
Miro Hrončok added the comment: We also get: File "/usr/lib/python3.9/site-packages/dnf/comps.py", line 111 return'.'.join(lcl) ^ SyntaxError: invalid string prefix -- nosy: +hroncok ___ Python tracker

[issue40468] IDLE split "general" into two tabs

2020-05-03 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49118/tabs_wn.png ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue40468] IDLE split "general" into two tabs

2020-05-03 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49119/tabs_wn_padx.png ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40468] IDLE split "general" into two tabs

2020-05-03 Thread E. Paine
E. Paine added the comment: Initially, I simply changed the tab position on the settings window notebook to west-north (tabs_wn.png). I didn't like that the tabs were right-sticky and looked at changing this in the following two ways: 1) Changing the tab position to the right-side (tabs_en.p

[issue40468] IDLE split "general" into two tabs

2020-05-03 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49117/tabs_en.png ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue14106] Distutils manifest: recursive-(include|exclude) matches suffix instead of full filename

2020-05-03 Thread Marius Gedminas
Marius Gedminas added the comment: For the record, this is still a bug in Python 3.8 distutils (and it affects global-(include|exclude) as well), but it's been fixed in setuptools, so it shouldn't affect people writing MANIFEST.in files in 2020. -- nosy: +mgedmin ___

[issue40484] Document existing compiler flags under ast

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

[issue40484] Document existing compiler flags under ast

2020-05-03 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : PyCF_ALLOW_TOP_LEVEL_AWAIT, PyCF_TYPE_COMMENTS and PyCF_ONLY_AST should be documented just like CO_ flags under inspect module. -- assignee: docs@python components: Documentation messages: 367972 nosy: BTaskaya, docs@python priority: normal severit

[issue14869] imaplib erronously quotes atoms such as flags

2020-05-03 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue40447] compile_file's stripdir does not accept pathlib.Path

2020-05-03 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch nosy: +FFY00 nosy_count: 2.0 -> 3.0 pull_requests: +19195 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19883 ___ Python tracker

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

2020-05-03 Thread hai shi
Change by hai shi : -- pull_requests: +19194 pull_request: https://github.com/python/cpython/pull/19882 ___ Python tracker ___ ___ P

[issue40483] Implementing a verifier function to verify integrity of AST nodes

2020-05-03 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : This is actually a problem that is existing for a long time. A recent example would be the discussion in the GH-19868. Implementation - It should check existence of all fields (like ast.Constant() wont verified) - It should check types of all fields agains

[issue40483] Implementing a verifier function to verify integrity of AST nodes

2020-05-03 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- dependencies: +Default values for AST Nodes ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40482] _hashlib: register Python names as OpenSSL aliases

2020-05-03 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +19193 pull_request: https://github.com/python/cpython/pull/19880 ___ Python tracker ___ ___

[issue40482] _hashlib: register Python names as OpenSSL aliases

2020-05-03 Thread Christian Heimes
New submission from Christian Heimes : Python uses valid Python identifiers for hashing algorithms while OpenSSL uses slightly different default names. For example OpenSSL uses "SHA3-256" while Python has "sha3_256". The function py_digest_by_name() in _hashopenssl.c maps from Python names to

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

2020-05-03 Thread Chris Jerdonek
Change by Chris Jerdonek : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2020-05-03 Thread Sviatoslav Sydorenko
Sviatoslav Sydorenko added the comment: Not sure if it's in the scope of this issue but I thought I'd report it. I've just hit a similar issue with `setup.cfg` under Python 3.8 which is supposed to be parsed by `setuptools` but for some reason, I only see `distutils` in the trace, coming fro

[issue40481] Add include and exclude filters to zipapp cli

2020-05-03 Thread Jarosław Wygoda
Change by Jarosław Wygoda : -- keywords: +patch pull_requests: +19191 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19879 ___ Python tracker ___ _

[issue40481] Add include and exclude filters to zipapp cli

2020-05-03 Thread Jarosław Wygoda
New submission from Jarosław Wygoda : Currently I can pass a filter function when creating archive but it's a bit cumbersome so I'd like to do it through cli. Related issue: https://bugs.python.org/issue31072 -- components: Library (Lib) messages: 367966 nosy: Jarosław Wygoda priority:

[issue40480] "fnmatch" exponential execution time

2020-05-03 Thread kleshni
New submission from kleshni : Hello. The following code hangs: import fnmatch fnmatch.fnmatchcase("a" * 32, "*" * 16 + "b") Measurements show that its execution time rises exponentially with the number of asterisks. Bash and SQLite 3 process this glob instantly. This is because "fnmatchcase"

[issue40031] IDLE fails trying to inport old idlelib file names for config

2020-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Everything from AutoComplete onwards has been added somehow and must be removed. The preliminary version of 3.8.3 was released last Wednesday. When the final version is released in a week or two, I recommend upgrading and getting the untouched .def files.

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-03 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +19190 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19878 ___ Python tracker ___

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-03 Thread Christian Heimes
New submission from Christian Heimes : OpenSSL 3.0.0-alpha1 was releases about a week ago. OpenSSL 1.1.x APIs are still functional. However some APIs have been deprecated and FIPS (usedforsecurity flag) is no longer functional. * One shot HMAC() is deprecated and should be replaced with EVP_M

[issue40416] Calling TextIOWrapper.tell() in the middle of reading a gb2312-encoded file causes UnicodeDecodeError

2020-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The commit referenced above is for #33578. The symptoms for that issue were very similar, including involving a cjk codec. The change was not backported because it was seen an enhancement. Rob, if you try 3.8.2 or 3.8.3 (the release candidate was out Wedn

[issue9216] FIPS support for hashlib

2020-05-03 Thread Christian Heimes
Christian Heimes added the comment: _hashlib.get_fips_mode() is not compatible with new FIPS design in OpenSSL 3.0.0: The function calls 'FIPS_mode()' and 'FIPS_mode_set()' are present in OpenSSL 3.0 but always fail. You should rewrite your application to not use them. https://wiki.openss

[issue40031] IDLE fails trying to inport old idlelib file names for config

2020-05-03 Thread Saaheer Purav
Saaheer Purav added the comment: Here is the file. -- Added file: https://bugs.python.org/file49116/config-extensions.def ___ Python tracker ___ __

[issue40416] Calling TextIOWrapper.tell() in the middle of reading a gb2312-encoded file causes UnicodeDecodeError

2020-05-03 Thread Inada Naoki
Inada Naoki added the comment: I think this is not a bug, but a limitation of Python 3.7, and improvement in 3.8. -- nosy: +inada.naoki ___ Python tracker ___ ___

[issue27035] Cannot set exit code in atexit callback

2020-05-03 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: This bug has been filed several times: issue1257 issue11654 and it's tempting to simply close this as a dup, but this ticket mentions the documentation, which is slightly confusing: https://docs.python.org/3.8/library/atexit.html#atexit.register It's not

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

2020-05-03 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset 21893fbb74e8fde2931fbed9b511e2a41362b1ab by Chris Jerdonek in branch 'master': bpo-29587: allow chaining NULL exceptions in _gen_throw() (GH-19877) https://github.com/python/cpython/commit/21893fbb74e8fde2931fbed9b511e2a41362b1ab -- _