[issue40479] Port _hashlib to OpenSSL 3.0.0

2022-02-07 Thread miss-islington
miss-islington added the comment: New changeset 3ceff9968be059209f0d7271365f38895207b24d by Miss Islington (bot) in branch '3.10': bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153) https://github.com/python/cpython/commit/3ceff9968be059209f0d7271365f38895207b24d ---

[issue40479] Port _hashlib to OpenSSL 3.0.0

2022-02-07 Thread miss-islington
miss-islington added the comment: New changeset 0892a0e3ec925ac959bc959b985293b4b96ef863 by Miss Islington (bot) in branch '3.9': bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153) https://github.com/python/cpython/commit/0892a0e3ec925ac959bc959b985293b4b96ef863

[issue24904] Provide a way for potentially long runtime difflib algorithms to be aborted by the caller (and report progress?)

2022-02-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: The way I'd go about this is to support some form of periodic checkpoint in the algorithm where it checks in with code supplied by the difflib user. Traditionally that'd have been via callbacks, there might be an async style way to express that these days.

[issue20342] Endianness not detected correctly due to AC_RUN_IFELSE macros

2022-02-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: any idea if this is still relevant? -- components: +Cross-Build nosy: +Alex.Willmer, gregory.p.smith ___ Python tracker ___ ___

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

2022-02-07 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +29357 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31186 ___ Python tracker ___ ___

[issue46657] Add mimalloc memory allocator

2022-02-07 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2022-02-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20342] Endianness not detected correctly due to AC_RUN_IFELSE macros

2022-02-07 Thread Yury V. Zaytsev
Yury V. Zaytsev added the comment: Well, the machine that I had the problem on does no longer exist and I'm not sure whether this is a generic POWER issue. The problem was that I had to cross-compile Python on one generation of POWER machines for another POWER chip using its own special tool

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

2022-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c1ff4cb98b11c00aee765019364544c71e7dd2df by Nikita Sobolev in branch '3.10': [3.10] bpo-46611: add coverage to instance and class checks in `typing.py` (GH-31078) (GH-31182) https://github.com/python/cpython/commit/c1ff4cb98b11c00aee765019364

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

2022-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Nikita. -- components: +Tests -Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker

[issue20342] Endianness not detected correctly due to AC_RUN_IFELSE macros

2022-02-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll leave it open, nothing about this should be ppc64 vs ppc64el specific. Our cross compilation story has historically been not great. Building for a target of one endianness from a build host of other endianness... sounds like exactly one of many kind

[issue46663] test_math test_cmath test_complex fails on Fedora Rawhide buildbots

2022-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: @vstinner What was the change that caused the buildbots to start failing? Did the GCC version get updated on those machines between the last runs and this one, or was the change due to recent PRs in Python? -- nosy: +mark.dickinson _

[issue46673] Py_BuildValue tuple creation segfaults in python3.9..3.11

2022-02-07 Thread Olli Lupton
New submission from Olli Lupton : The following function, compiled and linked into a shared library, segfaults when called from Python: ``` #define PY_SSIZE_T_CLEAN #include extern "C" PyObject* my_func() { return Py_BuildValue("(O)", Py_None); } ``` called using ctypes: ``` from ctypes impor

[issue46674] Two if in a row in generators

2022-02-07 Thread Ramil Nugmanov
New submission from Ramil Nugmanov : treat without error two if in generators. >>>[x for x in [1, 2, 3] if 1 if 1] [1, 2, 3] >>>[x for x in [1, 2, 3] if 0 if 1] [] expected syntax error -- components: Parser messages: 412726 nosy: lys.nikolaou, pablogsal, stsouko priority: normal sev

[issue46674] Two if in a row in generators

2022-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is valid syntax. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mail

[issue46640] Python can now use the C99 NAN constant or __builtin_nan()

2022-02-07 Thread Petr Viktorin
Petr Viktorin added the comment: Adding new C99 features needs a change in PEP 7 (https://www.python.org/dev/peps/pep-0007/#c-dialect) -- nosy: +petr.viktorin status: closed -> open ___ Python tracker _

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

2022-02-07 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch nosy: +sobolevn nosy_count: 3.0 -> 4.0 pull_requests: +29358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31187 ___ Python tracker __

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2022-02-07 Thread Andreas Skaar
Andreas Skaar added the comment: Steve Dower do you have any links to the issues you mention? Are these now solved? I am not able to see if the fix is straightforward, but from the information from Eryk Sun it sounds like it should be? -- ___ Pyt

[issue46665] IDLE Windows shortcuts by default

2022-02-07 Thread Alex Waygood
Alex Waygood added the comment: As a longtime Windows user, I also generally expect ctrl+Y to redo an action in most programs, FWIW. -- nosy: +AlexWaygood ___ Python tracker

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.11

2022-02-07 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue46674] Two if in a row in generators

2022-02-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: As Serhiy mentioned, this is a valid syntax. -- nosy: +BTaskaya resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue46673] Py_BuildValue tuple creation segfaults in python3.9..3.11

2022-02-07 Thread Olli Lupton
Olli Lupton added the comment: With apologies for the noise, I realise that the posted example does not handle the GIL correctly. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue46159] Segfault when using trace functions in 3.11a3

2022-02-07 Thread Mark Shannon
Mark Shannon added the comment: Can you reproduce this failure with just Python? If not, with just cryptography and not tox? -- ___ Python tracker ___

[issue46161] `class A(1, 2, 3, **d): pass` gives bad bytecode

2022-02-07 Thread Mark Shannon
Mark Shannon added the comment: Qiang Zhang, thanks for fixing this. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46675] Allow more than 16 items in split-keys dicts and "virtual" object dicts.

2022-02-07 Thread Mark Shannon
New submission from Mark Shannon : https://bugs.python.org/issue45340 and https://github.com/python/cpython/pull/28802 allowed "virtual" object dicts (see faster-cpython/ideas#72 for full details). In order for this to work, we need to keep the insertion order on the values. The initial ver

[issue46674] Two if in a row in generators

2022-02-07 Thread Ramil Nugmanov
Ramil Nugmanov added the comment: Yes, [x for x in [1, 2, 3] if 1 if 1] can be replaced with: for x in [1, 2, 3]: if 1: if 1: yield x However this syntax is strange and leads to errors like: [x for x in [1, 2, 3] if x is not None] >> [x for x in [1, 2, 3] if x if no

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

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29359 pull_request: https://github.com/python/cpython/pull/31188 ___ Python tracker ___ __

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8e98175a03fe03d62822d96007a74e5273013764 by Nikita Sobolev in branch 'main': bpo-46648: Rewrite test_urllib2.test_issue16464() with a local HTTP server (GH-31186) https://github.com/python/cpython/commit/8e98175a03fe03d62822d96007a74e5273013764

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

2022-02-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29360 pull_request: https://github.com/python/cpython/pull/31189 ___ Python tracker ___ __

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

2022-02-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29361 pull_request: https://github.com/python/cpython/pull/31190 ___ Python tracker ___ __

[issue46674] Two if in a row in generators

2022-02-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, stop reopening the issue. The syntax is valid python syntax and we will not be able to make it invalid -- resolution: -> not a bug status: open -> closed ___ Python tracker

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: I don't think that this fallback is needed anymore. Which Windows code page can be used as ANSI code page which is not already implemented as a Python codec? -- ___ Python tracker

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

2022-02-07 Thread miss-islington
miss-islington added the comment: New changeset 0d74efc54fa811def386d2cde00986204ba18569 by Miss Islington (bot) in branch '3.9': bpo-46648: Rewrite test_urllib2.test_issue16464() with a local HTTP server (GH-31186) https://github.com/python/cpython/commit/0d74efc54fa811def386d2cde00986204ba

[issue46657] Add mimalloc memory allocator

2022-02-07 Thread Christian Heimes
Christian Heimes added the comment: ICC might be a problem. Apparently some version have an incomplete stdatomic.h, see bpo-37415. -- ___ Python tracker ___ _

[issue46663] test_math test_cmath test_complex fails on Fedora Rawhide buildbots

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > @vstinner What was the change that caused the buildbots to start failing? Did > the GCC version get updated on those machines between the last runs and this > one, or was the change due to recent PRs in Python? It's a GCC regression. GCC is updated frequen

[issue24904] Provide a way for potentially long runtime difflib algorithms to be aborted by the caller (and report progress?)

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue46640] Python can now use the C99 NAN constant or __builtin_nan()

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Adding new C99 features needs a change in PEP 7 > (https://www.python.org/dev/peps/pep-0007/#c-dialect) IMO this PEP is outdated for a long time. C99 standard is wide. Do we have to explicitly list every single function, macro or constant used by Python?

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: A benchmark on calling C functions using ctypes sounds better than a benchmark calling Python functions. For Python functions, Python objects are converted to C types, and then C types are convered back to Python objects, the Python result is converted to a

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4cce1352bb47babaeefb68fcfcc48ffa073745c3 by Victor Stinner in branch 'main': bpo-46323: _ctypes.CFuncPtr fails if _argtypes_ is too long (GH-31188) https://github.com/python/cpython/commit/4cce1352bb47babaeefb68fcfcc48ffa073745c3 -- _

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

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29362 pull_request: https://github.com/python/cpython/pull/31192 ___ Python tracker ___ __

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

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29363 pull_request: https://github.com/python/cpython/pull/31193 ___ Python tracker ___ __

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

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29364 pull_request: https://github.com/python/cpython/pull/31194 ___ Python tracker ___ __

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: -Wexpansion-to-defined and -Wunused-macros options are also interesting. -- ___ Python tracker ___ __

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29365 pull_request: https://github.com/python/cpython/pull/31195 ___ Python tracker ___ __

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

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29366 pull_request: https://github.com/python/cpython/pull/31196 ___ Python tracker ___ __

[issue46640] Python can now use the C99 NAN constant or __builtin_nan()

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Well, if you ask me, I would simply require a C99 compiler. That's all :-) Done in https://github.com/python/peps/pull/2309 -- ___ Python tracker

[issue46640] Python can now use the C99 NAN constant or __builtin_nan()

2022-02-07 Thread Petr Viktorin
Petr Viktorin added the comment: > IMO this PEP is outdated for a long time. It is not. Even if it is, it should be marked as such, and that is not a decision that should be done in this issue. Please, don't break the rules because you think they're outdated. > Well, if you ask me, I would

[issue46657] Add mimalloc memory allocator

2022-02-07 Thread Christian Heimes
Christian Heimes added the comment: References: - C11 stdatomic.h https://en.cppreference.com/w/c/atomic - mimalloc-atomic.h https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-atomic.h - MSVC Interlocked Variable Access https://docs.microsoft.com/de-de/windows/win32/sync/inte

[issue46675] Allow more than 16 items in split-keys dicts and "virtual" object dicts.

2022-02-07 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +29367 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31191 ___ Python tracker ___ ___

[issue46072] Unify handling of stats in the CPython VM

2022-02-07 Thread Mark Shannon
Mark Shannon added the comment: New changeset 062460e8fd54e53c9a1a6f175ef49c9d730851b8 by Mark Shannon in branch 'main': bpo-46072: Improve LOAD_METHOD stats (GH-31104) https://github.com/python/cpython/commit/062460e8fd54e53c9a1a6f175ef49c9d730851b8 --

[issue46072] Unify handling of stats in the CPython VM

2022-02-07 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29368 pull_request: https://github.com/python/cpython/pull/31197 ___ Python tracker ___

[issue46639] Ceil division with math.ceildiv

2022-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't understand why math.ceildiv couldn't ducktype. There's no rule that says it *must* convert arguments to float first, that's just a convention, and we've broken it before. >>> math.prod([Fraction(1, 3), 7]) Fraction(7, 3) Couldn't math.ceildiv(x, y)

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-07 Thread Jonathan
Jonathan added the comment: I still don't get how UNIQUESTRING is the longest even with autojunk=True, but that's an implementation detail and I'll trust you that it's working as expected. Given this, I'd suggest the following then: * `Autojunk=False` should be the default unless there's so

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

2022-02-07 Thread Mark Shannon
Mark Shannon added the comment: New changeset 4b603f628207b380a8a2f22d7ff5d2dbb0853e2e by Victor Stinner in branch 'main': bpo-46670: Remove unused macros in ceval.c (GH-31196) https://github.com/python/cpython/commit/4b603f628207b380a8a2f22d7ff5d2dbb0853e2e -- nosy: +Mark.Shannon

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset d3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2 by Victor Stinner in branch 'main': bpo-39277: Fix PY_TIMEOUT_MAX cast in _threadmodule.c (GH-31195) https://github.com/python/cpython/commit/d3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2 -- ___

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4f1d3f33dd8b37a151b73533f18b08b0500223e5 by Victor Stinner in branch 'main': bpo-46670: Remove unused macros in the Modules directory (GH-31194) https://github.com/python/cpython/commit/4f1d3f33dd8b37a151b73533f18b08b0500223e5 -- ___

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 760349198dbd8771629753e096a885c1aa28a1ca by Victor Stinner in branch 'main': bpo-46670: Remove unused macros in the Objects directory (GH-31193) https://github.com/python/cpython/commit/760349198dbd8771629753e096a885c1aa28a1ca --

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d8b69e1d1f125454d8cec81ff0dee72f2bef957 by Victor Stinner in branch 'main': bpo-46670: Remove unused macros in the Python directory (GH-31192) https://github.com/python/cpython/commit/7d8b69e1d1f125454d8cec81ff0dee72f2bef957 -- _

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset f20ca766fe404a20daea29230f161a0eb71bb489 by Victor Stinner in branch 'main': bpo-46670: Fix #ifdef in sha3module.c (GH-31180) https://github.com/python/cpython/commit/f20ca766fe404a20daea29230f161a0eb71bb489 -- ___

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

2022-02-07 Thread hydroflask
hydroflask added the comment: > A benchmark on calling C functions using ctypes sounds better than a > benchmark calling Python functions. Calling C functions from Python is not the code path handled by _CallPythonObject() so no difference in run-time would theoretically be observed by that

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

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: Oh ok, thanks for the clarification :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: The frame object I am referring to was: PyFrameObject *frame = PyThreadState_GetFrame(PyThreadState_Get()); This frame can not be used with PyObject_GetAttrString. Is there anyway to get the PyObject* associated with a PyFrameObject*? It seems weird that som

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: Example of C code that I added to _testcapi: --- static PyObject * get_caller_locals(PyObject *self, PyObject *Py_UNUSED(args)) { PyFrameObject *frame = PyThreadState_GetFrame(PyThreadState_Get()); if (frame == NULL) { Py_RETURN_NONE; }

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Is there anyway to get the PyObject* associated with a PyFrameObject*? Ah. I see. If you pass a PyFrameObject* frame to PyObject_GetAttrString(), you get a compiler warning. You should cast it explicitly: PyObject_GetAttrString((PyObject*)frame, "f_locals

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

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

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: I proposed GH-31198 to fix the compiler warnings in the doc. -- ___ Python tracker ___ ___ Python

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

2022-02-07 Thread hydroflask
hydroflask added the comment: Just to clarify further, the original benchmark by corona10 did indeed lead to `_CallPythonObject` being invoked but it was not quite the normal use-case. In the original benchmark it invoked the generated ctypes thunk via Python so as vstinner said it was doing

[issue46166] [C API] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- title: Get "self" args or non-null co_varnames from frame object with C-API -> [C API] Get "self" args or non-null co_varnames from frame object with C-API ___ Python tracker __

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

2022-02-07 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset e2eeffefed32bb8c47c09bdd94e27a4e949894ef by Gregory Beauregard in branch '3.10': [3.10] bpo-46655: allow stringized TypeAlias with get_type_hints (GH-31156). (#31175) https://github.com/python/cpython/commit/e2eeffefed32bb8c47c09bdd94e27a4e94

[issue45459] Limited API support for Py_buffer

2022-02-07 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue46647] `test_functools` unexpected failures when C `_functoolsmodule` is missing

2022-02-07 Thread Hai Shi
Hai Shi added the comment: > _functoolsmodule is a core bootstrap module and defined in > Modules/Setup.bootstrap. It has no external dependencies. There is no reason > and no point to disable the module. +1. > Cristian, in this case - is there a reason to keep `skipUnless(c_functools)` >

[issue46166] [C API] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset a89772c79183e3e62bf61b92077a04f6ebcc4a2b by Victor Stinner in branch 'main': bpo-46166: Fix compiler warnings in What's New in Python 3.11 (GH-31198) https://github.com/python/cpython/commit/a89772c79183e3e62bf61b92077a04f6ebcc4a2b --

[issue46072] Unify handling of stats in the CPython VM

2022-02-07 Thread Mark Shannon
Mark Shannon added the comment: New changeset 9c979d7afd839abbb080028bdfeb73727e5cf633 by Mark Shannon in branch 'main': bpo-46072: Merge dxpairs into py_stats. (GH-31197) https://github.com/python/cpython/commit/9c979d7afd839abbb080028bdfeb73727e5cf633 -- _

[issue46638] Inconsistent registry virtualization in Windows Store package

2022-02-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29370 pull_request: https://github.com/python/cpython/pull/31199 ___ Python tracker _

[issue46638] Inconsistent registry virtualization in Windows Store package

2022-02-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29371 pull_request: https://github.com/python/cpython/pull/31200 ___ Python tracker ___ __

[issue46638] Inconsistent registry virtualization in Windows Store package

2022-02-07 Thread Steve Dower
Steve Dower added the comment: New changeset 3a5afc14e16370c1f4f72d43cb553298ad9a1fa4 by Steve Dower in branch 'main': bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130) https://github.com/python/cpython/commit/3a5afc14e16370c1f4f72d43cb553298ad9a1

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2022-02-07 Thread Steve Dower
Steve Dower added the comment: Only by following the link I posted and searching for issues that sound like this one. Which I just did for you: https://github.com/libffi/libffi/issues/367 There may be more, though. I just grabbed the first one that looked like a match. --

[issue46669] Add types.Self

2022-02-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: On a related note, is this the correct way to annotate __exit__? Exc = TypeVar('Exc', bound=Exception) def __exit__(self, exctype: Optional[Type[Exc]], excinst: Optional[Exc], exctb: Any) -> None: -- ___ Pyth

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Václav Dvořák
Change by Václav Dvořák : -- nosy: +Václav Dvořák ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue46638] Inconsistent registry virtualization in Windows Store package

2022-02-07 Thread miss-islington
miss-islington added the comment: New changeset 9c45390208df712126c59f7c2b6f8d2b4e19ccf7 by Miss Islington (bot) in branch '3.10': bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130) https://github.com/python/cpython/commit/9c45390208df712126c59f7c2

[issue45459] Limited API support for Py_buffer

2022-02-07 Thread pmp-p
pmp-p added the comment: There's some side effects with "buffer.h" inclusion in Panda3D when building againt 3.11a5, project manager concerns are here https://github.com/python/cpython/pull/29991#issuecomment-1031731100 -- ___ Python tracker

[issue46638] Inconsistent registry virtualization in Windows Store package

2022-02-07 Thread Steve Dower
Steve Dower added the comment: New changeset 76b072717a160c44cb8d54be3d5e878bc31f2c38 by Miss Islington (bot) in branch '3.9': bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130) https://github.com/python/cpython/commit/76b072717a160c44cb8d54be3d5e8

[issue45459] Limited API support for Py_buffer

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > There's some side effects with "buffer.h" inclusion in Panda3D when building > againt 3.11a5, project manager concerns are here > https://github.com/python/cpython/pull/29991#issuecomment-1031731100 Copy of rdb's message: """ This change broke our project

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Václav Dvořák
Change by Václav Dvořák : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue45459] Limited API support for Py_buffer

2022-02-07 Thread rdb
Change by rdb : -- nosy: +rdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman

[issue45459] Limited API support for Py_buffer

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29372 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/31201 ___ Python tracker ___ __

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

2022-02-07 Thread Eryk Sun
Eryk Sun added the comment: > I don't think that this fallback is needed anymore. Which Windows > code page can be used as ANSI code page which is not already > implemented as a Python codec? Python has full coverage of the ANSI and OEM code pages in the standard Windows locales, but I don't

[issue46669] Add types.Self

2022-02-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Implementing PEP 673 (Self type) ___ Python tracker ___ __

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Guido van Rossum
Guido van Rossum added the comment: Fixing the version field. Since it's a feature, this could not go into any version before 3.11. Maybe Irit can look through the discussion and patch and see if there's value to doing this? (Feel free to decline!) -- nosy: +iritkatriel versions: +P

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-07 Thread Tim Peters
Tim Peters added the comment: We can't change defaults without superb reason - Python has millions of users, and changing the output of code "that works" is almost always a non-starter. Improvements to the docs are welcome. In your example, try running this code after using autojunk=True:

[issue46639] Ceil division with math.ceildiv

2022-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: > Couldn't math.ceildiv(x, y) be implemented as -(-x//y) in a type-agnostic > fashion? Ah, good point. Yes, that could work. We'd have to decide what to do about Decimal if we took this approach, since the -(-x//y) trick doesn't work there. (Document the is

[issue46676] ParamSpec args and kwargs are not equal to themselves.

2022-02-07 Thread Gregory Beauregard
New submission from Gregory Beauregard : from typing import ParamSpec P = ParamSpec("P") print(P.args == P.args) # False print(P.kwargs == P.kwargs) # False ParamSpec args and kwargs are not equal to themselves; this can cause problems for unit tests and type introspection w/ e.g. `get_type_

[issue46676] ParamSpec args and kwargs are not equal to themselves.

2022-02-07 Thread Gregory Beauregard
Change by Gregory Beauregard : -- keywords: +patch pull_requests: +29373 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31203 ___ Python tracker _

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Andy S
Andy S added the comment: Can reproduce this on 3.9. Is the fact 3.9 is in `bugfix` status enough to backport any fixing changes from 3.11 (if that's true and the bug was fixed)? -- ___ Python tracker _

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Irit Katriel
Irit Katriel added the comment: It depends how risky the 3.9 release manager would consider the fix to be. The first step would be to find out which commit(s) fixed it. -- ___ Python tracker ___

[issue46677] TypedDict docs are incomplete

2022-02-07 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : https://docs.python.org/3.10/library/typing.html#typing.TypedDict It says: > To allow using this feature with older versions of Python that do not support > PEP 526, TypedDict supports two additional equivalent syntactic forms But there is another reason

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Andy S
Andy S added the comment: Then maybe those RMs (for 3.9 and 3.10) should decide on their own? That should mean the bug should be reopened for them to get assigned to. -- ___ Python tracker _

[issue20779] Add pathlib.chown method

2022-02-07 Thread Jaspar S.
Jaspar S. added the comment: I would love to use chown for a pathlib Path, too. It may not be used often, but if anyone want's to change all the os references from a file, it would be cool to have it on pathlib! -- nosy: +y0urself ___ Python track

[issue46669] Add types.Self

2022-02-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The conventional way is to write def __exit__( self, __typ: type[BaseException] | None, __exc: BaseException | None, __tb: types.TracebackType | None, ) -> None: ... But there are two invariants about how __exit__ works in practice that this

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Irit Katriel
Irit Katriel added the comment: Fine, I’ll reopen it for 3.9. However, realistically the release managers are unlikely to investigate how this bug got fixed between 3.9 and 3.11 so if you think this is important you might want to do that work. -- resolution: out of date -> status: cl

  1   2   >