[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19714 pull_request: https://github.com/python/cpython/pull/20461 ___ Python tracker ___

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, the behavior for an existing bytes path was not unintended, but some people can depend on it. But before making it an official feature, we should also check other cases of an unintended behavior. What if set tempfile.tempdir to a Path object or to a

[issue2897] PyMemberDef missing in limited API / Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Change by Matthias Braun : -- pull_requests: +19715 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/20462 ___ Python tracker ___ __

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I expect the best decision to be to get rid of tempfile.tempdir entirely. That would need be its own issue with a deprecation period involved. A process global that alters behavior of all calls into a module that don't explicitly opt-out is a bad API. --

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c116c94ff119485761460f1033cdee425bed0310 by Shantanu in branch 'master': bpo-40614: Respect feature version for f-string debug expressions (GH-20196) https://github.com/python/cpython/commit/c116c94ff119485761460f1033cdee425bed0310

[issue40797] multiprocessing.Semaphore has undocumented get_value() method

2020-05-27 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The threading.Semaphore class does not have this method, it is undocumented and useless on some system (at least MacOS): >>> s.get_value() Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/3.8/lib/

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19716 pull_request: https://github.com/python/cpython/pull/20464 ___ Python tracker ___ ___

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 13.0 -> 14.0 pull_requests: +19717 pull_request: https://github.com/python/cpython/pull/20465 ___ Python tracker _

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Commit 9d17cbf33df7cfb67ca0f37f6463ba5c18676641 is causing all refleak buildbots to fail and is masking other issues and causing some confusion already in other PRs (like https://github.com/python/cpython/pull/20433) so I opened a revert in PR 20465 f

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 3a2667d91e33493ccde113ddf5092afefc3c89fa by Miss Islington (bot) in branch '3.9': bpo-30064: Fix asyncio loop.sock_* race condition issue (GH-20369) https://github.com/python/cpython/commit/3a2667d91e33493ccde113ddf5092afefc3c89fa --

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Shantanu
Change by Shantanu : -- pull_requests: +19718 pull_request: https://github.com/python/cpython/pull/20466 ___ Python tracker ___ ___

[issue37028] Implement asyncio repl

2020-05-27 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Compared to the vanilla REPL, this doesn’t include readline setup for tab > completion and history file. Was it on purpose? Not particularly, it was mostly to show it is possible. I'm guessing any improvement to make it more consistent with the normal

[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for 3.9 and later. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9b83829e7d476acecc86d48978acc5813ec51e65 by Pablo Galindo in branch '3.9': [3.9] bpo-40614: Respect feature version for f-string debug expressions (GH-20196) (GH-20464) https://github.com/python/cpython/commit/9b83829e7d476acecc86d48978a

[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-27 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I checked and FunctionTestCase seems to completely break the loader. The tests for FunctionTestCase in the standard library instantiate the class from inside the method of a TestCase so the loader never see them but even the simple test file I attached complete

[issue34204] Bump the default pickle protocol in shelve

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: I wrote a short script to see the impact of file size depending on the protocol: --- import shelve import os.path print("== Short value ==") for proto in (0, 1, 2, 3, 4, 5): filename = 'shelve-picklev%s' % proto with shelve.open(filename, protocol=prot

[issue2897] PyMemberDef missing in limited API / Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Matthias Braun added the comment: While working on the pull request I felt that the type and constants better fit `descrobject.h` rather than `object.h`. -- ___ Python tracker ___

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 76ef255bde772005bbd0761399b274c2240e61d3 by YoSTEALTH in branch 'master': bpo-37129: Add os.RWF_APPEND flag for os.pwritev() (GH-20336) https://github.com/python/cpython/commit/76ef255bde772005bbd0761399b274c2240e61d3 -- _

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d80b35af1ee03834ae4af83e920dee89c2bc273 by Pablo Galindo in branch 'master': Revert "bpo-32604: PEP 554 for use in test suite (GH-19985)" (#20465) https://github.com/python/cpython/commit/7d80b35af1ee03834ae4af83e920dee89c2bc273 -- _

[issue40798] The deprecated-removed Sphinx extension need to change the error message based on the Python version

2020-05-27 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The new deprecated-removed extension in the documentation always produces text like this: Deprecated since version 3.4, will be removed in version 3.8: MD5 as implicit default digest This message should be used in the documentation of 3.4 to 3.7 and then

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset e80697d687b610bd7fb9104af905dec8f0bc55a7 by Hai Shi in branch 'master': bpo-40275: Adding threading_helper submodule in test.support (GH-20263) https://github.com/python/cpython/commit/e80697d687b610bd7fb9104af905dec8f0bc55a7 -- _

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: The new test_sock_client_racing() test seems to have... a race condition... AMD64 FreeBSD Non-Debug 3.9: https://buildbot.python.org/all/#/builders/750/builds/11 ERROR: test_sock_client_racing (test.test_asyncio.test_sock_lowlevel.KqueueEventLoopTests) ERROR

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19720 pull_request: https://github.com/python/cpython/pull/20468 ___ Python tracker ___ __

[issue27779] Sync-up docstrings in C version of the the decimal module

2020-05-27 Thread Furkan Onder
Furkan Onder added the comment: Patches are prepared but not continued. It can be merge by small additions to the patches. -- nosy: +furkanonder ___ Python tracker ___

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +19721 pull_request: https://github.com/python/cpython/pull/20469 ___ Python tracker _

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

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

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 10228bad0452d94e66c964b625a0b61befa08e59 by Victor Stinner in branch 'master': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/10228bad0452d94e66c964b625a0b61befa08e59 -- __

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0461e19b5ecb2d89917b23efb5ce1048fab1b22 by Victor Stinner in branch 'master': bpo-40275: test.support.check_impl_detail() uses sys.implementation (GH-20468) https://github.com/python/cpython/commit/b0461e19b5ecb2d89917b23efb5ce1048fab1b22 ---

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Fantix King
Fantix King added the comment: Ouch ... looks like FreeBSD also needs a few more retries than a single retry. I'll test on a FreeBSD and create a PR for that. -- ___ Python tracker _

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 45ce0dbc4f8c68fe22ae97860faa8f2ec7faf27b by Miss Islington (bot) in branch '3.8': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/45ce0dbc4f8c68fe22ae97860faa8f2ec7faf27b --

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 9e3c583954f75a6396d1935e000df85d89b78a3d by Miss Islington (bot) in branch '3.9': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/9e3c583954f75a6396d1935e000df85d89b78a3d --

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

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

[issue40798] The deprecated-removed Sphinx extension need to change the error message based on the Python version

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue40797] multiprocessing.Semaphore has undocumented get_value() method

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19723 pull_request: https://github.com/python/cpython/pull/20471 ___ Python tracker ___ __

[issue39073] [security] email module incorrect handling of CR and LF newline characters in Address objects.

2020-05-27 Thread Ned Deily
Ned Deily added the comment: New changeset 7df32f844efed33ca781a016017eab7050263b90 by Miss Islington (bot) in branch '3.6': bpo-39073: validate Address parts to disallow CRLF (GH-19007) (#19224) https://github.com/python/cpython/commit/7df32f844efed33ca781a016017eab7050263b90 -- no

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Attached count_imports.py script counts how many modules are imported by "import test.support". With PR 20471, we are down to 74 modules. It's way better than 171 (when I created this issue)! -- Added file: https://bugs.python.org/file49197/count_im

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset aa890630bc877c73ec806c9982d8b7b2e7019723 by Victor Stinner in branch 'master': bpo-40275: test.support imports subprocess lazily (GH-20471) https://github.com/python/cpython/commit/aa890630bc877c73ec806c9982d8b7b2e7019723 -- _

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread STINNER Victor
New submission from STINNER Victor : Currently, "import datetime" starts by importing time, math, sys and operator modules, and then execute 2500 lines of Python code, define 7 classes, etc. For what? Just to remove all classes, functions, etc. to replace them with symbols from _decimal modul

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread Ezio Melotti
Change by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40799: Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available. -- ___ Python tracker ___ __

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19724 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20472 ___ Python tracker ___ _

[issue23897] Update Python 3 extension module porting guide

2020-05-27 Thread Sumana Harihareswara
Sumana Harihareswara added the comment: Following the large rewrite in https://github.com/python/cpython/pull/9317 to point to other guides (including py3c) instead of providing a guide, should we a) add a pointer to Barry's notes as well b) migrate this bug to request enhancements to py3c do

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks YoSTEALTH. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37028] Implement asyncio repl

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: This issue is now closed. If someone wants to enhane the asyncio REPL, please open a new issue. -- resolution: -> fixed ___ Python tracker

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread Elazar Gershuni
Change by Elazar Gershuni : -- nosy: +elazar nosy_count: 8.0 -> 9.0 pull_requests: +19726 pull_request: https://github.com/python/cpython/pull/20473 ___ Python tracker ___

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 56853d8ec6ed89bf5a9b81c3781a4df46ac391d3 by Elazar Gershuni in branch 'master': bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473) https://github.com/python/cpython/commit/56853d8ec6ed89bf5a9b81c3781a4df46ac391

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +19727 pull_request: https://github.com/python/cpython/pull/20474 ___ Python tracker

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Fantix King
Fantix King added the comment: Not a simple one - FreeBSD is returning ECONNREFUSED immediately when trying to connect to a non-listening port on the loopback address: https://lists.freebsd.org/pipermail/freebsd-current/2005-May/049876.html Then all following connect attempts on the same soc

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset de6b6841098e1a5967cb7a50b665ca7473d0ddad by Miss Islington (bot) in branch '3.9': bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473) (GH-20474) https://github.com/python/cpython/commit/de6b6841098e1a5967cb7a50b6

[issue30665] pass big values for arg to fcntl.ioctl

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Kyle Stanley
Kyle Stanley added the comment: > The new test_sock_client_racing() test seems to have... a race condition... I'm also a bit skeptical about relying on `time.sleep(0.01)` at the end of the loop in `_basetest_sock_recv_racing()`, but I don't have an idea for a better approach at the moment.

[issue14562] urllib2 maybe blocks too long with small chunks

2020-05-27 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue40790] Python should enable computed gotos on Mac by default

2020-05-27 Thread laike9m
laike9m added the comment: Hi Benjamin, do you mean that disabling computed gotos on Mac is the expected behavior? -- ___ Python tracker ___ _

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: codeop._maybe_compile wraps each compile in try ... except SyntaxError. It can later reraise just once. I think it a bug that it is not similarly careful about SyntaxWarning and DeprecationWarning to only emit a particular warning just once. Cheryl, would

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue40275] test.support has way too many imports

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

[issue40800] asyncio.sleep(0) should "yield" back to the event loop, but it doesn't behave as expected

2020-05-27 Thread Davy Durham
New submission from Davy Durham : I was searching for a way to "yield" from task/coroutinue back to the event loop (not yielding a value in terms of a generator) and not finding anything documented, I found this bug report and PR: https://github.com/python/asyncio/issues/284 It states tha

[issue37674] Is imp module deprecated or pending deprecation?

2020-05-27 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 5.0 -> 6.0 pull_requests: +19729 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20480 ___ Python tracker

<    1   2