[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 ___

[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 --

[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

[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?

[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:

[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

[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 ___

[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)

[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

[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

[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 ___

[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 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)

[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 ___

[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

[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

[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 ___

[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 ___

[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

[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

[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:

[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

[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? -- ___

[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

[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

[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

[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

[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

[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

[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

[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

[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)

[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

[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:

[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:

[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 ___

[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 ___

[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

[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

[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

<    1   2