[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29754 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31632 ___ Python tracker <https://bugs.python.org/issu

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: I created a PR to no longer skip tests in buildbots: https://github.com/python/buildmaster-config/pull/314 -- ___ Python tracker <https://bugs.python.org/issue46

[issue46886] ARM64 Windows Non-Debug 3.x: random build error: failure during conversion to COFF: file invalid or corrupt

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: example: https://buildbot.python.org/all/#/builders/730/builds/4081 Build FAILED. "C:\Workspace\buildarea\3.x.linaro-win-arm64.nondebug\build\PCbuild\pcbuild.proj" (Build target) (1) -> "C:\Workspace\buildarea\3.x.linaro-

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-28 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: Ok, CFrame has been renamed. > We should either make the whole PyThreadState structure private (move it to > the internal C API) This idea is tracked by bpo-39947. -- ___ Python tracker <https://bugs.p

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7496f9587306772b56ed074092c020f3ef16bf95 by Victor Stinner in branch 'main': bpo-45431: Rename CFrame to _PyCFrame in the C API (GH-31584) https://github.com/python/cpython/commit/7496f9587306772b56ed074092c020f3ef16bf95

[issue46748] Python.h includes stdbool.h

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: > Thank you, Kumar & Victor, for fixing up the issue! You're welcome. I'm happy to see that you reduced the number of #include in the C API ;-) I made similar changes in bpo-45434. -- ___ Python tracker

[issue46852] Remove the float.__setformat__() method

2022-02-27 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue for the second part of my plan: "Once they will be removed, it will become possible to move the detection of the IEEE 754 format in the build step (./configure script) rather than doing the detection at runtime (slower). It would r

[issue46852] Remove the float.__setformat__() method

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5a1c637ec6264790d3cfeef46815c62c32b510f3 by Victor Stinner in branch 'main': bpo-46852: Restore test_getformat() test (GH-31601) https://github.com/python/cpython/commit/5a1c637ec6264790d3cfeef46815c62c32b510f3

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: Ah, with PYTHONDUMPREFS=1 (and without -I), I get a negative ref count: $ PYTHONDUMPREFS=1 ./python -X showrefcount -c pass [-10 refs, 0 blocks] I don't plan to investigate this issue. I'm not using PYTHONDUMPREFS=1 anymore

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: I just built Python with --with-trace-refs. On Linux, it works as expected: $ ./python -I -X showrefcount -c pass [0 refs, 0 blocks] -- ___ Python tracker <https://bugs.python.org/issue46

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: > Initially, I modified Py_INCREF to dump the object (addr & tp_name) on > initial inc (ob_refcnt == 1) and Py_DECREF to dump on final dec > (ob_refcnt == 0). Then filter that list (~65K) to find objects not > dealloc'ed. Given those names (~2

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset ad56919c5ed54523f866e6605a2573ab7b7d5235 by Victor Stinner in branch 'main': bpo-46857: Fix refleak in OSError INIT_ALIAS() (GH-31594) https://github.com/python/cpython/commit/ad56919c5ed54523f866e6605a2573ab7b7d5235

[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: https://docs.python.org/dev/whatsnew/3.11.html#c-api-changes documents the addition of the "is_package" member to the _frozen structure, but it doesn't mention the new "get_code" member. Can it be also documented? --

[issue46748] Python.h includes stdbool.h

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset e182c660b63bc23420fb9f0593d77a3fa3b7f1c7 by Kumar Aditya in branch 'main': bpo-46748: Fix ctypes test_frozentable() (GH-31600) https://github.com/python/cpython/commit/e182c660b63bc23420fb9f0593d77a3fa3b7f1c7

[issue46430] intern strings in deepfrozen modules

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: > The other functions you are calling *do* return errors. You should not ignore > those. If any errors are reported the caller can decide what to do (e.g. call > Py_FatalError(). PEP 587 introduced PyStatus to Python startup code

[issue46430] intern strings in deepfrozen modules

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: commit 0d9b565e62a5fc8c3e9b8c64cce764fe084ccb2b Author: Kumar Aditya <59607654+kumaraditya...@users.noreply.github.com> Date: Sat Feb 26 22:05:03 2022 +0530 Propagate errors (however unlikely) from _Py_Deepfreeze_Init() (GH

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: > NGROUPS_MAX is 65536 and sizeof(gid_t) is 4 on Ubuntu 20.04, so grouplist is > 262144bytes. Oops, that's a lot! Nicely spotted! Yeah, it's perfectly fine to allocate a temporary array on the heap memory. There is no need to micro-optimize this fu

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset e02c47528b31f513d5f5d6eb91b8c9714134cea2 by Victor Stinner in branch 'main': bpo-46606: os.getgroups() doesn't overallocate (GH-31569) https://github.com/python/cpython/commit/e02c47528b31f513d5f5d6eb91b8c9714134cea2

[issue46852] Remove the float.__setformat__() method

2022-02-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29724 pull_request: https://github.com/python/cpython/pull/31601 ___ Python tracker <https://bugs.python.org/issue46

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: > Good news, the difference on Windows was easy enough to find, bad news total > refs are now negative! Oh wow. How did you find this leak? Did you read all C files and check for code specific to Windows? How did you proceed? Well spotted! >

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29717 pull_request: https://github.com/python/cpython/pull/31594 ___ Python tracker <https://bugs.python.org/issue46

[issue46748] Python.h includes stdbool.h

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 2c228a7b8f89e9ed8d390370abd771d4993b79d8 by Petr Viktorin in > branch 'main': > bpo-46748: Don't import in public headers (GH-31553) It seems like this change broke ctypes on some architectures like s390x: https://buildbot.pytho

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29715 pull_request: https://github.com/python/cpython/pull/31592 ___ Python tracker <https://bugs.python.org/issue46

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5ab745fc51e159ead28b523414e52f0bcc1ef353 by Victor Stinner in branch 'main': bpo-46852: Remove the float.__set_format__() method (GH-31585) https://github.com/python/cpython/commit/5ab745fc51e159ead28b523414e52f0bcc1ef353

[issue45459] Limited API support for Py_buffer

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: I close again the issue, the C API should now be fine :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46816] Remove declarations for non-__STDC__ compilers

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4060111f9dc44682f9d7bdafb4e7dacb96706ad3 by Oleg Iarygin in branch 'main': bpo-46816: Remove declarations for non-__STDC__ compilers (GH-31466) https://github.com/python/cpython/commit/4060111f9dc44682f9d7bdafb4e7dacb96706ad3

[issue46816] Remove declarations for non-__STDC__ compilers

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: It should be fine :-D Thanks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea9612a17bc60d44e0058f525d3c02a91c439cef by Victor Stinner in branch 'main': bpo-46857: Fix test_embed.test_no_memleak() on Windows (GH-31589) https://github.com/python/cpython/commit/ea9612a17bc60d44e0058f525d3c02a91c439cef

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31589 ___ Python tracker <https://bugs.python.org/issu

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
New submission from STINNER Victor : "./python -X showrefcount -I -c pass" returns "[0 refs, 0 blocks]" as expected on Linux: Python doesn't leak any reference nor memory block. But on Windows, it still leaks 1 reference (and 1 memory block)! vstinner@DESKTOP-DK7VBIL C:\

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: Mark Dickinson: > I'd be happy to see `float.__setformat__` go, if it's not still needed for > Python's test suite (which was its entire raison d'être). If no-one noticed > the accidental misnaming, then it's pretty clear no-one's been using it

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 87af12bff33b3e7546fa26158b7d8680ecb6ecec by Victor Stinner in branch 'main': bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583) https://github.com/python/cpython/commit/87af12bff33b3e7546fa26158b7d8680ecb6ecec

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: Update: only two remaining functions are not exported by the public C API: int PySignal_SetWakeupFd(int fd); int _Py_CheckPython3(void); -- ___ Python tracker <https://bugs.python.org/issue45

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f780d9690f1a009a56ac0c653ec9608e6b2aeff4 by Victor Stinner in branch 'main': bpo-45316: Move _PyArg_Fini() to internal C API (GH-31580) https://github.com/python/cpython/commit/f780d9690f1a009a56ac0c653ec9608e6b2aeff4

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29708 pull_request: https://github.com/python/cpython/pull/31585 ___ Python tracker <https://bugs.python.org/issue46

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a549cd1fc55888e2e287714b25e2cb2251913909 by Victor Stinner in branch '3.9': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31581) https://github.com/python/cpython/commit

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a549cd1fc55888e2e287714b25e2cb2251913909 by Victor Stinner in branch '3.9': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31581) https://github.com/python/cpython/commit

[issue46432] AMD64 FreeBSD Shared 3.x buildbot fails to build: error: error reading 'LASTCFLAGS'

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD Shared 3.x is back to green, I close the issue. > Please leave this issue open Sorry but I prefer to use the Python bug tracker for things which must change in Python. -- resolution: -> fixed stage: -> resolved sta

[issue46663] test_math test_cmath test_complex fails on Fedora Rawhide buildbots

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: Rawhide buildbots are back to green: GCC has been fixed, I close the issue. Moreover, Python 3.11 now uses NAN constant or __builtin_nan(""). -- resolution: -> fixed stage: -> resolved status

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

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: PEP 7 has been updated, I close the issue. -- status: open -> closed ___ Python tracker <https://bugs.python.org/issu

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f2a337a80a283c66e1a4252839792fa229d2763 by Victor Stinner in branch 'main': bpo-45316: Move private functions to internal C API (GH-31579) https://github.com/python/cpython/commit/8f2a337a80a283c66e1a4252839792fa229d2763

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: > We should either make the whole PyThreadState structure private (move it to > the internal C API), or rename CFrame (to PyCFrame?). Well, moving PyThreadState to the internal C API is complicate. I prefer to start by renaming CFrame to PyCFrame:

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29707 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31584 ___ Python tracker <https://bugs.python.org/issu

[issue46356] [C API] Enforce usage of PyFrame_GetBack()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: This issue has been fixed by bpo-46836: New changeset 18b5dd68c6b616257ae243c0b6bb965ffc885a23 by Victor Stinner in branch 'main': bpo-46836: Move PyFrameObject to pycore_frame.h (GH-31530) -- resolution: -> fixed stage: -> resolved status

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29706 pull_request: https://github.com/python/cpython/pull/31583 ___ Python tracker <https://bugs.python.org/issue46

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29704 pull_request: https://github.com/python/cpython/pull/31581 ___ Python tracker <https://bugs.python.org/issue46

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29705 pull_request: https://github.com/python/cpython/pull/31581 ___ Python tracker <https://bugs.python.org/issue20

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29703 pull_request: https://github.com/python/cpython/pull/31580 ___ Python tracker <https://bugs.python.org/issue45

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0848da19ce8ea037ab1cfc569778e94bf8e3b24a by Victor Stinner in branch '3.10': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31578) https://github.com/python/cpython/commit

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0848da19ce8ea037ab1cfc569778e94bf8e3b24a by Victor Stinner in branch '3.10': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31578) https://github.com/python/cpython/commit

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29702 pull_request: https://github.com/python/cpython/pull/31579 ___ Python tracker <https://bugs.python.org/issue45

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ddbdd9e96e64b42c87dcfe4e38383cf0694988a by Victor Stinner in branch 'main': bpo-45316: Move private PyDict functions to internal C API (GH-31577) https://github.com/python/cpython/commit/8ddbdd9e96e64b42c87dcfe4e38383cf0694988a

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4a0c7a1aacd08cead7717479620e62359c828e88 by Victor Stinner in branch 'main': bpo-45316: Move private PyCode C API to internal C API (GH-31576) https://github.com/python/cpython/commit/4a0c7a1aacd08cead7717479620e62359c828e88

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29701 pull_request: https://github.com/python/cpython/pull/31578 ___ Python tracker <https://bugs.python.org/issue20

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29700 pull_request: https://github.com/python/cpython/pull/31578 ___ Python tracker <https://bugs.python.org/issue46

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29699 pull_request: https://github.com/python/cpython/pull/31577 ___ Python tracker <https://bugs.python.org/issue45

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29698 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31576 ___ Python tracker <https://bugs.python.org/issu

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: I announced the change on the capi-sig mailing list: https://mail.python.org/archives/list/capi-...@python.org/thread/RCT4SB5LY5UPRRRALEOHWEQHIXFNTHYF/ -- ___ Python tracker <https://bugs.python.org/issue46

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 18b5dd68c6b616257ae243c0b6bb965ffc885a23 by Victor Stinner in branch 'main': bpo-46836: Move PyFrameObject to pycore_frame.h (GH-31530) https://github.com/python/cpython/commit/18b5dd68c6b616257ae243c0b6bb965ffc885a23

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4657bf701670215ce69b89401b2307022a3b0a7d by Victor Stinner in branch 'main': bpo-1635741: Fix winreg reference leaks (GH-31560) https://github.com/python/cpython/commit/4657bf701670215ce69b89401b2307022a3b0a7d

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29691 pull_request: https://github.com/python/cpython/pull/31569 ___ Python tracker <https://bugs.python.org/issue46

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6 by Victor Stinner in branch 'main': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) https://github.com/python/cpython/commit/7d03c8be5af2f1559dbc35b775b3116dfd63cfb6

[issue46852] Remove the float.__setformat__() method

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6 by Victor Stinner in branch 'main': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) https://github.com/python/cpython/commit/7d03c8be5af2f1559dbc35b775b3116dfd63cfb6

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29683 pull_request: https://github.com/python/cpython/pull/31560 ___ Python tracker <https://bugs.python.org/issue1635

[issue46852] Remove the float.__setformat__() method

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: We can keep the float.__getformat__() method, it doesn't harm. I change the issue title to only propose to remove the float.__setformat__() method. -- title: Remove float.__get_format__() and float.__set_format__() -> Remove the float.__setforma

[issue46852] Remove float.__get_format__() and float.__set_format__()

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: I wrote GH-31558 to fix the typo in the method name. -- ___ Python tracker <https://bugs.python.org/issue46852> ___ ___ Pytho

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 10.0 -> 11.0 pull_requests: +29681 pull_request: https://github.com/python/cpython/pull/31558 ___ Python tracker <https://bugs.python.org/issu

[issue46852] Remove float.__get_format__() and float.__set_format__()

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29680 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31558 ___ Python tracker <https://bugs.python.org/issu

[issue46852] Remove float.__get_format__() and float.__set_format__()

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: Oh wait, I'm now confused by the method names. In Python 3.10, the correct names at: * float.__getformat__() <= 4 underscores * float.__set_format__() <= 5 underscores It's even more confusing because the "set format" is only used in one pl

[issue46852] Remove float.__get_format__() and float.__set_format__()

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46656: "Remove the Py_NO_NAN macro: require NAN to build Python 3.11". -- ___ Python tracker <https://bugs.python.o

[issue46656] Remove the Py_NO_NAN macro: require NAN to build Python 3.11

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- components: +Build, Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Compile fails if Py_NO_NAN is defined -> Remove the Py_NO_NAN macro: require NAN to build Python 3.11 versions: -Python

[issue46656] Compile fails if Py_NO_NAN is defined

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1b2611eb0283055835e5df632a7a735db8c894b8 by Victor Stinner in branch 'main': bpo-46656: Remove Py_NO_NAN macro (GH-31160) https://github.com/python/cpython/commit/1b2611eb0283055835e5df632a7a735db8c894b8

[issue46656] Compile fails if Py_NO_NAN is defined

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5f8b5e2f2150d2223ff9e286bd146de92ff16865 by Victor Stinner in branch 'main': bpo-46656: Building Python now requires a C11 compiler (GH-31557) https://github.com/python/cpython/commit/5f8b5e2f2150d2223ff9e286bd146de92ff16865

[issue46852] Remove float.__get_format__() and float.__set_format__()

2022-02-24 Thread STINNER Victor
New submission from STINNER Victor : It has been decided to require IEEE 754 to build Python 3.11: https://mail.python.org/archives/list/python-...@python.org/thread/J5FSP6J4EITPY5C2UJI7HSL2GQCTCUWN/ At Python startup, _PyFloat_InitState() checks the IEEE 754 format at runtime. It can

[issue46656] Compile fails if Py_NO_NAN is defined

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29679 pull_request: https://github.com/python/cpython/pull/31557 ___ Python tracker <https://bugs.python.org/issue46

[issue46623] test_zlib: test_pair() and test_speech128() fail with s390x hardware accelerator

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: The Python 3.7 package on Fedora also skips these two tests using --ignore option of regrtest: %ifarch s390x --ignore test_speech128 \ --ignore test_pair \ %endif * https://src.fedoraproject.org/rpms/python3.7/pull-request/38

[issue46623] test_zlib: test_pair() and test_speech128() fail with s390x hardware accelerator

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: Even if Python 3.9 and 3.10 are also affected, I prefer to not backport the change since it's not ideal. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue46623] test_zlib: test_pair() and test_speech128() fail with s390x hardware accelerator

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9475dc0b8d2a0db40278bbcb88a89b1265a77ec9 by Victor Stinner in branch 'main': bpo-46623: Skip two test_zlib tests on s390x (GH-31096) https://github.com/python/cpython/commit/9475dc0b8d2a0db40278bbcb88a89b1265a77ec9

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset c9c178fdb1af01e441a6c83f3a21a67e5dd9f17d by Victor Stinner in branch 'main': bpo-1635741: test_embed cheks that Python does not leak (GH-31555) https://github.com/python/cpython/commit/c9c178fdb1af01e441a6c83f3a21a67e5dd9f17d

[issue46430] intern strings in deepfrozen modules

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: I wrote https://github.com/python/cpython/pull/31555 to make sure that Python doesn't leak at Python exit. -- ___ Python tracker <https://bugs.python.org/issue46

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29677 pull_request: https://github.com/python/cpython/pull/31555 ___ Python tracker <https://bugs.python.org/issue1635

[issue46430] intern strings in deepfrozen modules

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4dc746310bd37ad6b381f9176acd167d445f4385 by Kumar Aditya in branch 'main': bpo-46430: Fix memory leak in interned strings of deep-frozen modules (GH-31549) https://github.com/python/cpython/commit/4dc746310bd37ad6b381f9176acd167d445f4385

[issue45459] Limited API support for Py_buffer

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 042f31da552c19054acd3ef7bb6cfd857bce172b by Victor Stinner in branch 'main': bpo-45459: C API uses type names rather than structure names (GH-31528) https://github.com/python/cpython/commit/042f31da552c19054acd3ef7bb6cfd857bce172b

[issue45459] Limited API support for Py_buffer

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset ec091bd47e2f968b0d1631b9a8104283a7beeb1b by Victor Stinner in branch 'main': bpo-45459: Add pytypedefs.h header file (GH-31527) https://github.com/python/cpython/commit/ec091bd47e2f968b0d1631b9a8104283a7beeb1b

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -29656 ___ Python tracker <https://bugs.python.org/issue46836> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: > PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct > _interpreter_frame *f, int exc); I created bpo-46850 "[C API] Move _PyEval_EvalFrameDefault() to the internal C API"

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46836: "[C API] Move PyFrameObject to the internal C API". -- ___ Python tracker <https://bugs.python.o

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29676 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31532 ___ Python tracker <https://bugs.python.org/issu

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: typo: "I propose to move most _PyEval private functions to the internal C API to clarify that they must *NOT* be used." :-) -- ___ Python tracker <https://bugs.python.o

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-02-24 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.10, _PyEval_EvalFrameDefault() has the API: PyObject* _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int throwflag); In Python 3.11, bpo-44590 (commit ae0a2b756255629140efcbe57fc2e714f0267aa3 "Lazily allocate frame ob

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: > Deprecating these functions is complex. I prefer to start with the least > controversial part: bpo-46659. locale.getdefaultlocale() is now deprecated in Python 3.11. -- ___ Python tracker

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: locale.getdefaultlocale() is now deprecated. calendar now uses locale.setlocale() instead of locale.getdefaultlocale(). The ANSI code page alias to MBCS now has better tests and better comments. Thanks Eryk Sun for your very useful feedback

[issue28533] Remove asyncore, asynchat and smtpd modules

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: Follow-up: PEP 594 schedules the removal of these 4 modules in Python 3.12, but the PEP remains a draft. -- ___ Python tracker <https://bugs.python.org/issue28

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4fccf910738d1442852cb900747e6dccb8fe03ef by Victor Stinner in branch 'main': bpo-46659: Enhance LocaleTextCalendar for C locale (GH-31214) https://github.com/python/cpython/commit/4fccf910738d1442852cb900747e6dccb8fe03ef

[issue13475] Add '--mainpath'/'--nomainpath' command line options to override sys.path[0] initialisation

2022-02-23 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-16202 "sys.path[0] security issues". -- ___ Python tracker <https://bugs.python.org/issue13475> ___ ___

[issue13475] Add '--mainpath'/'--nomainpath' command line options to override sys.path[0] initialisation

2022-02-23 Thread STINNER Victor
STINNER Victor added the comment: The problem of long option names is that they cannot be used in a Unix shebang: "#!/usr/bin/python3 --long-option". I propose to add the -P option to not add sys.path[0]: I wrote GH-31542. -- ___ Pyth

[issue13475] Add '--mainpath'/'--nomainpath' command line options to override sys.path[0] initialisation

2022-02-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29665 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31542 ___ Python tracker <https://bugs.python.org/issu

[issue13475] Add '--mainpath'/'--nomainpath' command line options to override sys.path[0] initialisation

2022-02-23 Thread STINNER Victor
STINNER Victor added the comment: See also "Python flag/envvar not to put current directory to sys.path (but don’t ignore PYTHONPATH)" discussion: https://discuss.python.org/t/python-flag-envvar-not-to-put-current-directory-to-sys-path-but-dont-ignore-pythonpath/4235/2 -

[issue46623] test_zlib: test_pair() and test_speech128() fail with s390x hardware accelerator

2022-02-23 Thread STINNER Victor
STINNER Victor added the comment: I checked os.uname() value on two buildbots, by looking at their test.pythoninfo: os.uname: posix.uname_result(sysname='Linux', nodename='ztcpip3.pok.ibm.com', release='3.10.0-1160.53.1.el7.s390x', version='#1 SMP Thu Dec 16 04:33:52 EST 2021', machine

<    1   2   3   4   5   6   7   8   9   10   >