[issue41123] Remove Py_UNICODE APIs except PEP 623

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1f316ea3b4fa319eec4f375fb683467b424c964e by Victor Stinner in branch 'main': bpo-41123: Remove Py_UNICODE_COPY() and Py_UNICODE_FILL() (GH-28887) https://github.com/python/cpython/commit/1f316ea3b4fa319eec4f375fb683467b424c964e -- ___

[issue45437] Assignment to a list of dictionary wrong

2021-10-11 Thread Zachary Ware
Zachary Ware added the comment: See https://docs.python.org/3/faq/programming.html#how-do-i-create-a-multidimensional-list Not quite the same example, but the underlying reason for what you're seeing is the same: each of the `dict` objects in `[{}] * 4` is actually the *same* dict object:

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-11 Thread Raymond Hettinger
New submission from Raymond Hettinger : In the example below, __annotations__ is correct but not the corresponding Signature object. --- from typing import List def f(s: List[float]) -> None: pass def g(s: list[float]) -> N

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

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 61190e092b8258ede92ac543bb39bad0f7168104 by Victor Stinner in branch 'main': bpo-45412: Move copysign() define to pycore_pymath.h (GH-28889) https://github.com/python/cpython/commit/61190e092b8258ede92ac543bb39bad0f7168104 --

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

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Include/pymath.h is now better, I close the issue ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : The public C API should avoid accessing directly PyTypeObject members: see bpo-40170. I propose to move static inline functions to the internal C API, and only expose opaque function calls to the public C API. -- components: C API messages: 403695

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27185 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28890 ___ Python tracker ___ _

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset fb8f208a4ddb38eedee71f9ecd0f22058802dab1 by Victor Stinner in branch 'main': bpo-45439: _PyObject_Call() only checks tp_vectorcall_offset once (GH-28890) https://github.com/python/cpython/commit/fb8f208a4ddb38eedee71f9ecd0f22058802dab1 ---

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27186 pull_request: https://github.com/python/cpython/pull/28891 ___ Python tracker ___ __

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: Raymond, the bug must be in the Python code in inspect.py. Could you dig a little deeper there? I don't know much about it. Specifically I think the problem may just be in the repr() of class Parameter: >>> inspect.signature(g).parameters['s']

[issue40890] Dict views should be introspectable

2021-10-11 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab nosy_count: 6.0 -> 7.0 pull_requests: +27187 pull_request: https://github.com/python/cpython/pull/28892 ___ Python tracker ___

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ce3489cfdb9f0e050bdc45ce5d3902c2577ea683 by Victor Stinner in branch 'main': bpo-45439: Rename _PyObject_CallNoArg() to _PyObject_CallNoArgs() (GH-28891) https://github.com/python/cpython/commit/ce3489cfdb9f0e050bdc45ce5d3902c2577ea683 ---

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-11 Thread Alex Waygood
Alex Waygood added the comment: Some thoughts from me, as an unqualified but interested party: Like Randolph, I very much like having class properties in the language, and have used them in several projects since their introduction in 3.9. I find they're especially useful with Enums. However

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27188 pull_request: https://github.com/python/cpython/pull/28893 ___ Python tracker ___ __

[issue45435] delete misleading faq entry about atomic operations

2021-10-11 Thread Steven D'Aprano
New submission from Steven D'Aprano : Why do you say that the FAQ is misleading? If it is misleading, it should be replaced with a more correct answer, not just deleted. -- nosy: +steven.daprano ___ Python tracker

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset be21706f3760bec8bd11f85ce02ed6792b07f51f by Mike Gilbert in branch 'main': bpo-45433: Do not link libpython against libcrypt (GH-28881) https://github.com/python/cpython/commit/be21706f3760bec8bd11f85ce02ed6792b07f51f -- nosy: +vstinne

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Nicely spotted, thanks for the fix! I prefer to not backport to avoid any risk of regression. In my experience, the build system is fragile. -- components: +Build -C API resolution: -> fixed stage: patch review -> resolved status: open -> closed ver

[issue40890] Dict views should be introspectable

2021-10-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread Eryk Sun
Eryk Sun added the comment: It's up to the core devs whether or not Python should try to use a high-resolution timer, which is currently undocumented in the Windows API and implemented only in recent releases of Windows 10 and 11. But if this does get supported, the code should fall back on

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : If the HAVE_DECL_ISINF macro is not defined in pyconfig.h, the Py_IS_INFINITY macro is defined as: #define Py_IS_INFINITY(X) \ ((X) && (Py_FORCE_DOUBLE(X)*0.5 == Py_FORCE_DOUBLE(X))) Problem: Py_FORCE_DOUBLE() is excluded from the limited C API (and th

[issue45396] Custom frozen modules get ignored.

2021-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not convinced by the comment you linked to. It seems Brett is referring to the case where at the C level someone overrides `PyImport_FrozenModules` (a global in frozen.c) -- though it is never explicitly named in the thread. And that variable *is* igno

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: The Py_FORCE_DOUBLE() macro was added in bpo-5724 by the change: commit e05e8409e1b47a2c018ad8a67016546217165c60 Author: Mark Dickinson Date: Mon May 4 13:30:43 2009 + Issue #5724: Fix cmath failures on Solaris 10. --

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27189 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28894 ___ Python tracker ___ _

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27190 pull_request: https://github.com/python/cpython/pull/28895 ___ Python tracker ___ __

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Calling sys.stdout doesn't help :-( Fail at commit ce3489cfdb9f0e050bdc45ce5d3902c2577ea683: https://buildbot.python.org/all/#/builders/73/builds/788 --- 0:00:10 load avg: 7.59 [306/427/1] test_ftplib failed (env changed) Warning -- Uncaught thread exception:

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread Sam James
Change by Sam James : -- nosy: +thesamesam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset d943d19172aa93ce88bade15b9f23a0ce3bc72ff by Victor Stinner in branch 'main': bpo-45439: Move _PyObject_CallNoArgs() to pycore_call.h (GH-28895) https://github.com/python/cpython/commit/d943d19172aa93ce88bade15b9f23a0ce3bc72ff -- _

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50345/test_bench.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50346/bench.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

<    1   2