[issue40479] Port _hashlib to OpenSSL 3.0.0

2022-02-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +29356 pull_request: https://github.com/python/cpython/pull/31184 ___ Python tracker ___

[issue40479] Port _hashlib to OpenSSL 3.0.0

2022-02-06 Thread miss-islington
miss-islington added the comment: New changeset 59e004af63742361b67d1e1ae70229ff0db1059d by Zackery Spytz in branch 'main': bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153) https://github.com/python/cpython/commit/59e004af63742361b67d1e1ae70229ff0db1059d --

[issue40479] Port _hashlib to OpenSSL 3.0.0

2022-02-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +29355 pull_request: https://github.com/python/cpython/pull/31183 ___ Python tracker ___

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: wont fix -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Dong-hee Na added the comment: With v3 benchmark Mean +- std dev: [base] 1.32 us +- 0.02 us -> [opt] 1.18 us +- 0.02 us: 1.13x faster -- ___ Python tracker ___

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file50610/bench_callback_v3.py ___ Python tracker ___ ___ Python-bugs-list

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread hydroflask
hydroflask added the comment: Vanilla bench_callback_v2.py, not compiled with mypyc: $ env/bin/python bench_callback_v2.py 1.114047016017139 $ env2/bin/python bench_callback_v2.py 0.9644024870358407 ~13% reduction in runtime. Nice job! --

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Dong-hee Na added the comment: @hydroflask Would you like to run your benchmark with my latest PR? -- ___ Python tracker ___ ___

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner I got a similar result from hydroflask's benchmark. I think that is worth reopening this issue WDYT? -- nosy: +erlendaasland, vstinner ___ Python tracker

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread hydroflask
hydroflask added the comment: Okay I put together a benchmark that better exemplifies my use case and results are in favor of adding patch. When bench_callback_v2.py is not compiled with mypyc I see a ~10% reduction in runtime: $ unpatched-env/bin/python bench_callback_v2.py

[issue46611] Improve coverage of `__instancecheck__` and `__subclasscheck__` methods in `typing.py`

2022-02-06 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +29354 pull_request: https://github.com/python/cpython/pull/31182 ___ Python tracker ___

[issue46672] NameError in asyncio.gather when passing a invalid type as an arg with multiple awaitables

2022-02-06 Thread arl
New submission from arl : It is possible to cause a NameError in asyncio.gather if the second presumed coroutine fails the internal type check. Sample code: import asyncio async def main(): coros = (asyncio.sleep(1), {1: 1}) await asyncio.gather(*coros) asyncio.run(main())

[issue46666] IDLE Add indent guide

2022-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: '│' is a bit taller that ascii bar '|'; hex(ord('│')) = '0x2502'. It is a bit heavy. In this Windows Firefox box it is slightly lighter than | but in IDLE with Source Code Pro, it is slightly darder. Worse is being centered instead of on one edge. We

[issue46666] IDLE Add indent guide

2022-02-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this were possible, it would be really nice to have. FWIW, the rich¹ project was able to pull this off in regular text terminal window: $ python3.10 -m pip install rich $ python3.10 -m rich.pretty { │ 'foo': [1, 'Hello World!', 100.123, 323.232,

[issue46666] IDLE Add indent guide

2022-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I loaded a .py file into N++ and see them. Under 3 x, there are clearly separate minidots. Under 10x, the dots are hardly visible. They are not characters in the text (cannot be copied) but a special manipulation of the column of pixels 'between' spaces.

[issue45955] Calling read() on HTTPError may cause KeyError in tempfile

2022-02-06 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-06 Thread Mike Lissner
Mike Lissner added the comment: Looks like that CVE isn't public yet. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0391 Any chance I can get access (I originally reported this vuln.). My email is m...@free.law, if it's possible and my email is needed. Thanks! --

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: Super subtle stuff. Tonight I do not have time to really dive into this, but I think Serhiy is on to something. KJ or Jelle, do you have the guts to dive in here? -- ___ Python tracker

[issue46589] Improve documentation for typing._GenericAlias

2022-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset a335d98f19b7fa66159d12932cc9a05eb2d8395f by Matthew Rahtz in branch 'main': bpo-46589: Improve documentation for typing._GenericAlias (GH-31026) https://github.com/python/cpython/commit/a335d98f19b7fa66159d12932cc9a05eb2d8395f --

[issue46666] IDLE Add indent guide

2022-02-06 Thread primexx
primexx added the comment: > Please just select the current development version. Others can be marked if > and when backported oh sorry about that! > Please explain exactly what you want these dotted lines in the attached screenshot > What you see in the editor is what is saved

[issue46611] Improve coverage of `__instancecheck__` and `__subclasscheck__` methods in `typing.py`

2022-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 067c03bf40d13393209f0138fa9c4d5980c4ff8a by Nikita Sobolev in branch 'main': bpo-46611: add coverage to instance and class checks in `typing.py` (GH-31078) https://github.com/python/cpython/commit/067c03bf40d13393209f0138fa9c4d5980c4ff8a

[issue46665] IDLE Windows shortcuts by default

2022-02-06 Thread primexx
primexx added the comment: > I wish it were otherwise, but configuration defaults cannot be changed as > some people would not like it and it would badly interact with custom > configurations. that is a good point. perhaps just adding alternate keysets. this is clearly not a high priority

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Dong-hee Na added the comment: @hydroflask I am one of the big fans of applying vectorcall :) > The benchmark you did is not reflective of my use-case. I have a codebase > that I have completely converted into a C extension using mypyc. Can you provide me a minimal benchmarkable script(if

[issue46671] "ValueError: min() arg is an empty sequence" is wrong (builtins.min/max)

2022-02-06 Thread Nnarol
Change by Nnarol : -- components: +Interpreter Core -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46666] IDLE Add indent guide

2022-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: [Please just select the current development version. Others can be marked if and when backported. 3.8 and before only get security fixes. Same for 3.9 after about next May 31.] Please explain exactly what you want and rewrite something like the

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b556f53785cb9ad8cc088ad8c10efee91fe3da58 by Victor Stinner in branch 'main': bpo-46670: Test if a macro is defined, not its value (GH-31178) https://github.com/python/cpython/commit/b556f53785cb9ad8cc088ad8c10efee91fe3da58 --

[issue46671] "ValueError: min() arg is an empty sequence" is wrong (builtins.min/max)

2022-02-06 Thread Nnarol
Change by Nnarol : -- keywords: +patch pull_requests: +29352 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31181 ___ Python tracker ___

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29351 pull_request: https://github.com/python/cpython/pull/31180 ___ Python tracker ___

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 097f74a5a37e2a8a26d529cede456ede7011b66f by Victor Stinner in branch 'main': bpo-46670: Define all macros for stringlib (GH-31176) https://github.com/python/cpython/commit/097f74a5a37e2a8a26d529cede456ede7011b66f --

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 16f96a4cf9ab1e91e6e8e18232378bc4b42bb796 by Victor Stinner in branch 'main': bpo-46670: Remove unused get_frame_state() function (GH-31177) https://github.com/python/cpython/commit/16f96a4cf9ab1e91e6e8e18232378bc4b42bb796 --

[issue46671] "ValueError: min() arg is an empty sequence" is wrong (builtins.min/max)

2022-02-06 Thread Nnarol
New submission from Nnarol : Incorrect error message by min_max(): "ValueError: min() arg is an empty sequence" when using the form min(iterable, *[, default=obj, key=func]) -> value and "iterable" is empty, like so: min([]) or: min(set()) "Sequence" is referred to, even

[issue46665] IDLE Windows shortcuts by default

2022-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I wish it were otherwise, but configuration defaults cannot be changed as some people would not like it and it would badly interact with custom configurations. We can add new themes and keysets, but that should be very rare. We can consider adding

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread hydroflask
hydroflask added the comment: @corona10 Thank you for looking into it. The benchmark you did is not reflective of my use-case. I have a codebase that I have completely converted into a C extension using mypyc. So the ctypes callback does not call into interpreted Python code but actually

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread Eryk Sun
Eryk Sun added the comment: > The Python 3.6 and 3.7 "codecs.register(_alias_mbcs)" doesn't work > because "search_function()" is tested before and it works for "cpXXX" > encodings. Isn't the 3.6-3.10 ordering of search_function() and _alias_mbcs() correct as a fallback? In this case,

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29350 pull_request: https://github.com/python/cpython/pull/31179 ___ Python tracker ___

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29349 pull_request: https://github.com/python/cpython/pull/31178 ___ Python tracker ___

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29348 pull_request: https://github.com/python/cpython/pull/31177 ___ Python tracker ___

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29347 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31176 ___ Python tracker ___

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
New submission from STINNER Victor : Building Python with "gcc -Wundef" emits many warnings about usage of undefined macros. If a macro is not defined, it is equal to 0. The problem is that a macro can be undefined because of a missing #include, or because of a typo in its name, or because

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na
Dong-hee Na added the comment: @hydroflask It does not show impressive performance enhancement, so I decided not to change it See PR 31138 -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: CVE-2022-0391 has been assigned to this vulnerability. -- nosy: +vstinner title: [security] urllib.parse should sanitize urls containing ASCII newline and tabs. -> [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline

[issue46655] typing.TypeAlias is not in the list of allowed plain _SpecialForm typeforms

2022-02-06 Thread Gregory Beauregard
Change by Gregory Beauregard : -- pull_requests: +29346 pull_request: https://github.com/python/cpython/pull/31175 ___ Python tracker ___

[issue46648] `test.test_urllib2.MiscTests.test_issue16464` flaky due to external connection

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 04dd60e50cd3da48fd19cdab4c0e4cc600d6af30 by Victor Stinner in > branch 'main': > bpo-46659: Update the test on the mbcs codec alias (GH-31168) This change is not correct, I created bpo-46668 to fix it. --

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29345 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31174 ___ Python tracker ___

[issue46655] typing.TypeAlias is not in the list of allowed plain _SpecialForm typeforms

2022-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 77b025be4a4cd5a3bfc1b1af560cc57e8e956c98 by Gregory Beauregard in branch 'main': bpo-46655: allow stringized TypeAlias with get_type_hints (GH-31156) https://github.com/python/cpython/commit/77b025be4a4cd5a3bfc1b1af560cc57e8e956c98

[issue46655] typing.TypeAlias is not in the list of allowed plain _SpecialForm typeforms

2022-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: Looks like the more likely use case would be PEP 563: from __future__ import annotations from typing import TypeAlias, get_type_hints import typing class C: a: TypeAlias = int print(get_type_hints(C)) This prints Traceback (most recent call last):

[issue46669] Add types.Self

2022-02-06 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: PEP 673 (which was accepted) adds typing.Self already. bpo-46534 tracks implementing it. -- ___ Python tracker ___

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: Python 3.11 supports the 40 code pages: * 037 * 273 * 424 * 437 * 500 * 720 * 737 * 775 * 850 * 852 * 855 * 856 * 857 * 858 * 860 * 861 * 862 * 863 * 864 * 865 * 866 * 869 * 874 * 875 * 932 * 949 * 950 * 1006 * 1026 * 1125 * 1140 * 1250 * 1251 * 1252 * 1253 *

[issue46669] Add types.Self

2022-02-06 Thread Raymond Hettinger
New submission from Raymond Hettinger : Typeshed now has a nice self-describing type variable to annotate context managers: Self = TypeVar('Self') def __enter__(self: Self) -> Self: return self It would be nice to have that in the standard library types module as well. --

[issue46661] Duplicat deprecation warnings in docs for asyncio

2022-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: Kumar are you interested in fixing this? -- ___ Python tracker ___ ___ Python-bugs-list

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: The alias was created in 2003 to fix bpo-671666: --- commit 4eab486476c0082087a8460a5ab1064e64cc1a6b Author: Martin v. Löwis Date: Mon Mar 3 09:34:01 2003 + Patch #671666: Alias ANSI code page to "mbcs". --- In 2003, bpo-671666 was created because

[issue46657] Add mimalloc memory allocator

2022-02-06 Thread Christian Heimes
Christian Heimes added the comment: We have an autoconf check for stdatomic.h. The test even verifies that a program with atomic_load_explicit() compiles and links. How do we want to use mimalloc in the future? Is it going to stay optional in 3.12? Then the default setting for

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
New submission from STINNER Victor : While working on bpo-46659, I found a bug in the encodings "mbcs" alias. Even if the function has 2 tests (in test_codecs and test_site), both tests missed the bug :-( I fixed the alias with this change: --- commit 04dd60e50cd3da48fd19cdab4c0e4cc600d6af30

[issue46644] typing: remove callable() check from typing._type_check

2022-02-06 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-06 Thread Tim Peters
Tim Peters added the comment: SequenceMatcher looks for the longest _contiguous_ match. "UNIQUESTRING" isn't the longest by far when autojunk is False, but is the longest when autojunk is True. All those bpopular characters then effectively prevent finding a longer match than 'QUESTR'

[issue46654] urllib.request.urlopen doesn't handle UNC paths produced by pathlib's as_uri() (but can handle UNC paths with additional slashes)

2022-02-06 Thread Eryk Sun
Change by Eryk Sun : -- assignee: docs@python -> components: -2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, C API, Cross-Build, Demos and Tools, Distutils, Documentation, Extension Modules, FreeBSD, IDLE, IO, Installation, Interpreter Core, Parser, Regular Expressions,

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-06 Thread Jonathan
Jonathan added the comment: Gah. I mean 0.008 in both directions. I'm just going to be quiet now. :-) -- ___ Python tracker ___

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-06 Thread Jonathan
Jonathan added the comment: (Like the idiot I am, the example code is wrong. `autojunk` parameter should *not* be set for either of them to get the stated wrong results). In place of "UNIQUESTRING", any unique 3 character string triggers it (QQQ, EEE, ZQU...). And in those cases you get a

[issue46648] `test.test_urllib2.MiscTests.test_issue16464` flaky due to external connection

2022-02-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: The merged PRs disable the test without anything tracking fixing or re-re-enabling it. Reopening & retitling this issue. This specific test does not need to use an external server. That has nothing to do with what the purposes of the test is which is all

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-06 Thread Jonathan
New submission from Jonathan : The following two strings are identical other than the text "UNIQUESTRING". UNIQUESTRING is at the start of first and at the end of second. Running the below gives the following output: 0.99830220713073 0.99830220713073 0.023769100169779286 # ratio

[issue46666] IDLE indent guide

2022-02-06 Thread primexx
New submission from primexx : Request: support indent guide for IDLE in editor window (i.e. not interactive shell) there appears to not be currently support for indent guides in idle one take is that idle is meant for small scripts and one should seek out a more complex IDE if it gets to

[issue46665] IDLE Windows shortcuts by default

2022-02-06 Thread primexx
New submission from primexx : In IDLE on Windows, there are certain keyboard shortcut idiosycracies in the default configuration. For example, redo is ctrl+shift+z (standard elsewhere) rather than ctrl+y (Microsoft's standard) de-indenting is ctrl+[ rather than shift+tab (also affects

[issue46664] PY_SSIZE_T_MAX is not an integer constant expression

2022-02-06 Thread ov2k
Change by ov2k : -- type: compile error -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46664] PY_SSIZE_T_MAX is not an integer constant expression

2022-02-06 Thread ov2k
New submission from ov2k : PY_SSIZE_T_MAX is currently defined in Include/pyport.h as: #define PY_SSIZE_T_MAX ((Py_ssize_t)(((size_t)-1)>>1)) This is not an integer constant expression, which means it can't be used in preprocessor conditionals. For example: #if PY_SSIZE_T_MAX >

[issue46657] Add mimalloc memory allocator

2022-02-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: Thanks, I'm indeed interested. Most credit goes to Christian for advancing this. For the missing stdatomic.h, would it be appropriate to have an autoconfig check for it? Can just disable mimalloc if it doesn't exist. --

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: > Please see the discussion on https://bugs.python.org/issue43552: > locale.getpreferredencoding() needs to be deprecated as well. Instead we > should have a single locale.getencoding() as outlined there... perhaps in a > separate ticket ?! Thanks. Yeah, I

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: > For these reasons, I propose to deprecate locale.getdefaultlocale(): > setlocale(), getpreferredencoding() and getlocale() should be used instead. Please see the discussion on https://bugs.python.org/issue43552: locale.getpreferredencoding() needs to

[issue46648] `test.test_urllib2.MiscTests.test_issue16464` started to fail

2022-02-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +29344 pull_request: https://github.com/python/cpython/pull/31173 ___ Python tracker ___

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 06b8f1615b09099fae5c5393334b8716a4144d20 by Victor Stinner in branch 'main': bpo-46659: test.support avoids locale.getdefaultlocale() (GH-31167) https://github.com/python/cpython/commit/06b8f1615b09099fae5c5393334b8716a4144d20 --

[issue29240] PEP 540: Add a new UTF-8 mode

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 91106cd9ff2f321c0f60fbaa09fd46c80aa5c266 by Victor Stinner in > branch 'master': > bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) > https://github.com/python/cpython/commit/91106cd9ff2f321c0f60fbaa09fd46c80aa5c266 Oh, this change broke the

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 04dd60e50cd3da48fd19cdab4c0e4cc600d6af30 by Victor Stinner in branch 'main': bpo-46659: Update the test on the mbcs codec alias (GH-31168) https://github.com/python/cpython/commit/04dd60e50cd3da48fd19cdab4c0e4cc600d6af30 --

[issue46663] test_math test_cmath test_complex fails on Fedora Rawhide buildbots

2022-02-06 Thread STINNER Victor
New submission from STINNER Victor : PPC64LE Fedora Rawhide LTO 3.10: https://buildbot.python.org/all/#/builders/674/builds/543 3 tests failed: test_cmath test_complex test_math That's a GCC 12 regression: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104389 -- components: Tests

[issue46644] typing: remove callable() check from typing._type_check

2022-02-06 Thread Gregory Beauregard
Gregory Beauregard added the comment: I compiled your PR to run it and was testing in 3.10 as well, but I was testing in a file with from __future__ import annotations unintentionally. I retract the comment. It turns out `list[42]` is okay though, which I suppose is more relevant going

[issue46642] typing: tested TypeVar instance subclass TypeError is incidental

2022-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test is good. If we accidentally make a TypeVar instance subclassable, it will catch such error. -- ___ Python tracker ___

[issue46644] typing: remove callable() check from typing._type_check

2022-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But it gives the same result. What version of Python do you test with? -- ___ Python tracker ___

[issue46660] datetime.timestamp() fails for naive-datetime values prior to the start of the epoch

2022-02-06 Thread Sam Roberts
Change by Sam Roberts : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46660] datetime.timestamp() fails for naive-datetime values prior to the start of the epoch

2022-02-06 Thread Sam Roberts
Sam Roberts added the comment: this seems like an expected discrepancy because of a difference in the mechanism used for aware datatimes vs. naive datetimes, although I'm not sure I understand why the computation with naive datetimes uses the mktime() function rather than invoking

[issue46654] urllib.request.urlopen doesn't handle UNC paths produced by pathlib's as_uri() (but can handle UNC paths with additional slashes)

2022-02-06 Thread Emanuelle Pharand
Change by Emanuelle Pharand : -- assignee: -> docs@python components: +2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, C API, Cross-Build, Demos and Tools, Distutils, Documentation, Extension Modules, FreeBSD, IDLE, IO, Installation, Interpreter Core, Library (Lib),

[issue46644] typing: remove callable() check from typing._type_check

2022-02-06 Thread Gregory Beauregard
Gregory Beauregard added the comment: I'm referring to within type annotations, where this code path isn't used: try a: List[42] This code path can show up in type aliases though. -- ___ Python tracker

[issue46644] typing: remove callable() check from typing._type_check

2022-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, List[42] is not currently accepted. >>> List[42] Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/typing.py", line 318, in inner return func(*args, **kwds) ^^^ File

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29343 pull_request: https://github.com/python/cpython/pull/31171 ___ Python tracker ___

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2022-02-06 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue31057] pydoc for tempfile.TemporaryDirectory should say it returns the name

2022-02-06 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25970] py_compile.compile fails if existing bytecode file is unwritable

2022-02-06 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed

2022-02-06 Thread PySimpleGUI
PySimpleGUI added the comment: I'm sorry for not getting back quicker on the Linux testing. I've not figured out how to get 8.6.12 up and running on my Linux environment. I've tried both Python 3.9 and Python 3.10 and neither have 8.6.12. -- Added file:

[issue46662] Lib/sqlite3/dbapi2.py: convert_timestamp function failed to correctly parse timestamp

2022-02-06 Thread Bo-wei Chen
Change by Bo-wei Chen : -- keywords: +patch pull_requests: +29342 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31169 ___ Python tracker ___

[issue46662] Lib/sqlite3/dbapi2.py: convert_timestamp function failed to correctly parse timestamp

2022-02-06 Thread Bo-wei Chen
New submission from Bo-wei Chen : convert_timestamp function in Lib/sqlite3/dbapi2.py fails to parse a timestamp correctly, if it does not have microseconds but comes with timezone information, e.g. b"2022-02-01 16:09:35+00:00" Traceback: Traceback (most recent call last): File

[issue46657] Add mimalloc memory allocator

2022-02-06 Thread Christian Heimes
Christian Heimes added the comment: Buildbots "PPC64 Fedora PR" and all RHEL 7 build bots provided by David Edelsohn are failing because compiler is missing support for stdatomic.h. -- ___ Python tracker

[issue46661] Duplicat deprecation warnings in docs for asyncio

2022-02-06 Thread Guido van Rossum
New submission from Guido van Rossum : I found that several asyncio function descriptions, e.g. gather, have a duplicate deprecation notice like this: .. deprecated-removed:: 3.8 3.10 The ``loop`` parameter. This function has been implicitly getting the current running loop

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29341 pull_request: https://github.com/python/cpython/pull/31168 ___ Python tracker ___

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29340 pull_request: https://github.com/python/cpython/pull/31167 ___ Python tracker ___

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50606/cal_locale.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : Removed file: https://bugs.python.org/file50605/cal_locale.py ___ Python tracker ___ ___ Python-bugs-list

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: cal_locale.py: Test calendar.LocaleTextCalendar() default locale, manual test for GH-31166. -- Added file: https://bugs.python.org/file50605/cal_locale.py ___ Python tracker

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29339 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31166 ___ Python tracker ___

[issue46644] typing: remove callable() check from typing._type_check

2022-02-06 Thread Gregory Beauregard
Gregory Beauregard added the comment: List[42] is already accepted, and your proposed patch does not change it to make it not accepted. The issue is _type_check is only called in a few particular locations; this is part of the technical reason I'm not very concerned about relaxing the

[issue46660] datetime.timestamp() fails for naive-datetime values prior to the start of the epoch

2022-02-06 Thread Sam Roberts
Sam Roberts added the comment: the first sentence should have read: datetime.timestamp() fails for naive-datetime values prior to the start of the epoch, but for some reason works properly for aware-datetime values prior to the start of the epoch. -- title: datetime.fromtimestamp()

[issue46660] datetime.fromtimestamp() fails for naive-datetime values prior to the start of the epoch

2022-02-06 Thread Sam Roberts
Change by Sam Roberts : -- title: datetime.datetime.fromtimestamp -> datetime.fromtimestamp() fails for naive-datetime values prior to the start of the epoch ___ Python tracker

  1   2   >