[issue45436] test_tk.test_configure_type() fails with Tcl/Tk 8.6.11

2021-11-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue45436> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2021-11-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue2771> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-11-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue42967> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2021-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 99c7e9853fa13af414168f179213e3d2fae03a45 by Victor Stinner in branch 'main': bpo-40170: Update What's New in Python 3.9 (GH-29470) https://github.com/python/cpython/commit/99c7e9853fa13af414168f179213e3d2fae03a45

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2021-11-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27723 pull_request: https://github.com/python/cpython/pull/29470 ___ Python tracker <https://bugs.python.org/issue40

[issue21644] Optimize bytearray(int) constructor to use calloc()

2021-11-08 Thread STINNER Victor
STINNER Victor added the comment: I abandonned the issue because I didn't have time to work on it. If you want, you can open a new issue for that. -- ___ Python tracker <https://bugs.python.org/issue21

[issue24666] Buffered I/O does not take file position into account when reading blocks

2021-10-22 Thread STINNER Victor
STINNER Victor added the comment: Hi, the io module doesn't use the block size of the filesystem. io.BufferedReader uses a default buffer size of 8 * 1024 bytes. I don't think that it's really important to respect the block size in Python. There are buffers at many levels. io.BufferedReader

[issue44959] EXT_SUFFIX is missing '.sl' on HP-UX

2021-10-22 Thread STINNER Victor
STINNER Victor added the comment: > Can this be merged to python 3.10 as well? Thanks It's unclear to me if it's a new feature or a bugfix. But since the change is trivial, I'm fine with backporting it as a bugfix to 3.9 and 3.10 branc

[issue5120] Change _tkinter initialization for new versions of Aqua Tk on OS X

2021-10-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue5120> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2021-10-21 Thread STINNER Victor
STINNER Victor added the comment: I like calling .fileno() explicitly. It seems like it's not really needed to call it implicitly, since this issue doesn't get much activity. I suggest to reject it. -- status: pending -> open ___ Python trac

[issue42961] Use-after-free (of a heap type) during finalization

2021-10-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 3.0 -> 4.0 pull_requests: +27403 pull_request: https://github.com/python/cpython/pull/26274 ___ Python tracker <https://bugs.python.org/issu

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-21 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/cpython/pull/29121 to add PyThreadState_SetProfile() and PyThreadState_SetTrace() functions. -- ___ Python tracker <https://bugs.python.org/issue43

[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2021-10-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27399 pull_request: https://github.com/python/cpython/pull/29121 ___ Python tracker <https://bugs.python.org/issue39

[issue44019] operator.call/operator.__call__

2021-10-21 Thread STINNER Victor
STINNER Victor added the comment: test___all__ was not supposed to fail with the missing "call" in operator.__all__? -- ___ Python tracker <https://bugs.python.o

[issue45459] Limited API support for Py_buffer

2021-10-19 Thread STINNER Victor
STINNER Victor added the comment: Maybe a PEP is needed to collect usages of the Py_buffer API and check if the ABI is future proof. A PEP may help to discuss with other projects which currently consume this API. I suggest to start with the smallest possible API and then slowly extend

[issue11173] Undocumented public APIs in Python 3.2

2021-10-19 Thread STINNER Victor
STINNER Victor added the comment: > I think this is complete, so I'll close this if nobody will object. I concur, please close it ;-) -- status: pending -> open ___ Python tracker <https://bugs.python.org/i

[issue41603] Compilation issue 3.8.5 with Redhat 7.8 and gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)

2021-10-19 Thread STINNER Victor
STINNER Victor added the comment: Python 3.8 is no longer supported. Can you reproduce the issue with Python 3.11? I fixed bugs like this one in the meanwhile. -- ___ Python tracker <https://bugs.python.org/issue41

[issue45436] test_tk.test_configure_type() fails with Tcl/Tk 8.6.11

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- title: test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11 -> test_tk.test_configure_type() fails with Tcl/Tk 8.6.11 ___ Python tracker <https://bugs.python.org/issu

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- title: test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x -> test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11 ___ Python tracker <https://bugs.pyth

[issue1336] subprocess.Popen hangs when child writes to stderr

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue1336> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45434] [C API] Clean-up the Python.h header file

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

[issue45434] [C API] Clean-up the Python.h header file

2021-10-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 52af0756b2ffc6788e364971d05cdaf127d77d5a by Victor Stinner in branch 'main': bpo-45434: Only exclude in Python 3.11 limited C API (GH-29027) https://github.com/python/cpython/commit/52af0756b2ffc6788e364971d05cdaf127d77d5a

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d by Victor Stinner in branch 'main': bpo-35134: Add Include/cpython/longobject.h (GH-29044) https://github.com/python/cpython/commit/5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: Python uses UTF-8 if the locale is not supported: $ LANG=xxx python3.9 -c "import sys; print(sys.flags.utf8_mode)" 1 On Fedora 34, the locale is still supported, and Python 3.11 still fails: vstinner@apu$ LANG=ka_GE.georgianps locale LANG=ka_GE.

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27315 pull_request: https://github.com/python/cpython/pull/29044 ___ Python tracker <https://bugs.python.org/issue35

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset aad88d33d9db0a93e480f0234292b948890dfc2a by Victor Stinner in branch 'main': bpo-35134: Split warnings.h and weakrefobject.h (GH-29042) https://github.com/python/cpython/commit/aad88d33d9db0a93e480f0234292b948890dfc2a

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27313 pull_request: https://github.com/python/cpython/pull/29042 ___ Python tracker <https://bugs.python.org/issue35

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 034f607906de6e375cc9a98cc3b09f6d56f8be10 by Victor Stinner in branch 'main': bpo-43760: Rename _PyThreadState_DisableTracing() (GH-29032) https://github.com/python/cpython/commit/034f607906de6e375cc9a98cc3b09f6d56f8be10

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27304 pull_request: https://github.com/python/cpython/pull/29032 ___ Python tracker <https://bugs.python.org/issue43

[issue45434] [C API] Clean-up the Python.h header file

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27298 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/29027 ___ Python tracker <https://bugs.python.org/issu

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: > * Cython: https://github.com/cython/cython/pull/4411 Merged: * 0.29.x: https://github.com/cython/cython/commit/cbddad23e30ea6d31e0178a4c623f1f6d75452c3 * master: https://github.com/cython/cython/commit/4df1103bd30143ce022b07f98a2f62678d417

[issue30774] list_repr not safe against concurrent mutation

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue30774> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32291] Value error for string shared memory in multiprocessing

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner status: pending -> open ___ Python tracker <https://bugs.python.org/issue32291> ___ ___ Python-bugs-list mai

[issue45434] [C API] Clean-up the Python.h header file

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. -- resolution: fixed -> status: closed -> open ___ Python tracker <https://bugs.python.org/i

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

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 00ffc4513df7b89a168e88da4d1e3ac367f7682f by Victor Stinner in branch 'main': bpo-45440: Remove pymath.c fallbacks (GH-28977) https://github.com/python/cpython/commit/00ffc4513df7b89a168e88da4d1e3ac367f7682f

[issue30459] PyList_SET_ITEM could be safer

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 51f8196d05f0e271358eee0f90fe044b20449fb5 by Victor Stinner in branch 'main': bpo-30459: Use (void) in macros setting variables (GH-28982) https://github.com/python/cpython/commit/51f8196d05f0e271358eee0f90fe044b20449fb5

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-45490: "[meta][C API] Avoid C macro pitfalls and usage of static inline functions" to discuss macros and static inline functions more generally. -- ___ Python tracker <https://bu

[issue45490] [meta][C API] Avoid C macro pitfalls and usage of static inline functions

2021-10-15 Thread STINNER Victor
New submission from STINNER Victor : C macros are really cool and useful, but there are a bunch of pitfalls which are better to avoid: https://gcc.gnu.org/onlinedocs/cpp/Macro-Pitfalls.html Some macros of the Python C API have been converted to static inline functions over the last years

[issue30459] PyList_SET_ITEM could be safer

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27269 pull_request: https://github.com/python/cpython/pull/28982 ___ Python tracker <https://bugs.python.org/issue30

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- title: Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build -> Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (

[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: What is your operating system? (name/version) Did you try to build Python manually and run the test manually? How did you build Python? What are the configure flags and compiler flags? -- nosy: +vstinner

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: PyThreadState.cframe.use_tracing format changed again: set value set to 0 or 255. https://github.com/python/cpython/commit/bd627eb7ed08a891dd1356756feb1ce2600358e4 -- ___ Python tracker <https://bugs.python.

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > bpo-43760: Add PyThreadState_EnterTracing() (GH-28542) I created changes to use it: * pythoncapi_compat: https://github.com/pythoncapi/pythoncapi_compat/commit/10fde24739cab4547e9c27c31c8804a25e23e8a0 * Cython: https://github.com/cython/cython/pull/4

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba by Victor Stinner in branch 'main': bpo-43760: Add PyThreadState_EnterTracing() (GH-28542) https://github.com/python/cpython/commit/547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba

[issue43725] Create a release branch ABI stability regression test

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > the dump needs to be generated in a docker container using the same compiler > version that is used in the CI I'm not used to docker and I don't know how to get a docker similar than the one used by GitHub Action. Is there a documentation somewhere

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27267 pull_request: https://github.com/python/cpython/pull/28979 ___ Python tracker <https://bugs.python.org/issue45

[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like pickle tests started to crash at build 936, 4 days ago: https://buildbot.python.org/all/#/builders/402/builds/936 This build was trigged by the change: commit fcb3d2ff633f3e9a826888d8b29c305a3959ff54 Author: Mark Shannon Date: Mon Oct 11 11

[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-15 Thread STINNER Victor
New submission from STINNER Victor : s390x RHEL7 LTO 3.x: https://buildbot.python.org/all/#/builders/402/builds/979 0:02:00 load avg: 5.14 [193/427/2] test_pickletools crashed (Exit code -11) -- running: test_unparse (30.6 sec), test_concurrent_futures (1 min 56 sec

[issue45482] [C API] Move _PyNamespace_New() to the internal C API

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: [C API] Add PySimpleNamespace_New() function -> [C API] Move _PyNamespace_New() to the internal C API ___ Python tra

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 354c35220d25a893e502014478f6739dad6897f3 by Victor Stinner in branch 'main': bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975) https://github.com/python/cpython/commit/354c35220d25a893e502014478f6739dad6897f3

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

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27265 pull_request: https://github.com/python/cpython/pull/28977 ___ Python tracker <https://bugs.python.org/issue45

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions -> [C API] Disallow using PyFloat_AS_DOUBLE() as l-value ___ Python tracker <https://bugs.pytho

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > #define Py_RVALUE(expr) ((void)0, (expr)) Oh, that's a clever trick! I wrote GH-28976 which uses it. -- ___ Python tracker <https://bugs.python.org/issu

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27264 pull_request: https://github.com/python/cpython/pull/28976 ___ Python tracker <https://bugs.python.org/issue45

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7f8dfd25a167ccfde9996c499fa38a2aba60022 by Victor Stinner in branch 'main': bpo-44113: Move the What's New entry to Deprecate section (GH-28974) https://github.com/python/cpython/commit/a7f8dfd25a167ccfde9996c499fa38a2aba60022

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > The other choice is to move the function to the internal C API. I created GH-28975 for that. -- ___ Python tracker <https://bugs.python.org/issu

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27263 pull_request: https://github.com/python/cpython/pull/28975 ___ Python tracker <https://bugs.python.org/issue45

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27262 pull_request: https://github.com/python/cpython/pull/28974 ___ Python tracker <https://bugs.python.org/issue44

[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 105582e74c1817bc6a9d99bcb6540b34a3367292 by Victor Stinner in branch 'main': bpo-45434: Remove Include/eval.h header file (GH-28973) https://github.com/python/cpython/commit/105582e74c1817bc6a9d99bcb6540b34a3367292

[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27261 pull_request: https://github.com/python/cpython/pull/28973 ___ Python tracker <https://bugs.python.org/issue45

[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 063abd931f064a4b6b478b0b6e9aa13ee38d2cff by Victor Stinner in branch 'main': bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969) https://github.com/python/cpython/commit/063abd931f064a4b6b478b0b6e9aa13ee38d2cff

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: For PyObject, I converted Py_REFCNT(), Py_TYPE() and Py_SIZE() to static inline functions to enforce the usage of Py_SET_REFCNT(), Py_SET_TYPE() and Py_SET_SIZE(). Only a minority of C extensions are affected by these changes. Also, there is more pressure

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: Petr: > Just note that these were *not* part of the limited API, which is defined in > Misc/stable_abi.txt rather than the #ifdefs: > https://docs.python.org/3.10/c-api/stable.html#stable > If they were, the functions would need to remain in th

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: I created this issue while cleaning the C API. I'm not fully convinced that PySimpleNamespace_New() must be made public. The other choice is to move the function to the internal C API. -- ___ Python tracker

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27258 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28970 ___ Python tracker <https://bugs.python.org/issu

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
New submission from STINNER Victor : Python has a types.SimpleNamespace type which is convenient to cheap a "simple namespace". I propose to make its C API public (but exclude it from the limited C API): add PySimpleNamespace_New() function. It's currently used in: * Modules/ti

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8e5de40f90476249e9a2e5ef135143b5c6a0b512 by Victor Stinner in branch 'main': bpo-35134: Move classobject.h to Include/cpython/ (GH-28968) https://github.com/python/cpython/commit/8e5de40f90476249e9a2e5ef135143b5c6a0b512

[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since there is still activity on it. -- resolution: fixed -> status: closed -> open ___ Python tracker <https://bugs.python.org/i

[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27257 pull_request: https://github.com/python/cpython/pull/28969 ___ Python tracker <https://bugs.python.org/issue35

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27256 pull_request: https://github.com/python/cpython/pull/28968 ___ Python tracker <https://bugs.python.org/issue35

[issue45084] urllib.parse: remove deprecated functions (splittype, to_bytes, etc.)

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: pip uses deprecated functions indirectly: https://github.com/python/cpython/pull/28115 Python 3.11 seems to be too early to *remove* functions. We can attempt again in the next Python release ;-) -- resolution: -> postponed stage: patch rev

[issue45434] [C API] Clean-up the Python.h header file

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

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

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

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77b24ba505744532d7cfd721b1c92d205e145180 by Victor Stinner in branch 'main': bpo-35134: Move Include/cellobject.h to Include/cpython/ (GH-28964) https://github.com/python/cpython/commit/77b24ba505744532d7cfd721b1c92d205e145180

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I searched for "PyFloat_AS_DOUBLE.*=" regex in the PyPI top 5000 projects. I couldn't find any project doing that. I only found perfectly safe comparisons: traits/ctraits.c:if (PyFloat_AS_DOUBLE(value) <= PyFloat_AS_DOUBLE(l

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27253 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/28964 ___ Python tracker <https://bugs.python.org/issu

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: commit 37b1d607bf0f1a9c1e89b1715349efc24dc180e0 (upstream/main, main) Author: Victor Stinner Date: Fri Oct 15 01:50:28 2021 +0200 po-35134: Move Include/funcobject.h to Include/cpython/ (GH-28958) Remove redundant "#ifndef Py_LIMITE

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7076bef8ba8836a19d5033f4ceb8eb9837de2301 by Victor Stinner in branch 'main': bpo-45434: Remove useless space in includes (GH-28963) https://github.com/python/cpython/commit/7076bef8ba8836a19d5033f4ceb8eb9837de2301

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03bbc6066ff40c62edd57612be9150dcf1b123c8 by Victor Stinner in branch 'main': bpo-41710: Fix What's New Entry credit (GH-28962) https://github.com/python/cpython/commit/03bbc6066ff40c62edd57612be9150dcf1b123c8

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: Raymond: > AFAICT, no one has ever has problems with these being macros. This issue is about the API of PyFloat_AS_DOUBLE(). Implementing it as a macro or a static inline function is an implementation detail which doesn't matter. But I don't know

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27252 pull_request: https://github.com/python/cpython/pull/28963 ___ Python tracker <https://bugs.python.org/issue45

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27251 pull_request: https://github.com/python/cpython/pull/28962 ___ Python tracker <https://bugs.python.org/issue41

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27250 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28961 ___ Python tracker <https://bugs.python.org/issu

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 284994762d820d8e09cc019f8f7c4bc501e37dd4 by Victor Stinner in branch 'main': bpo-45434: Limited Python.h no longer includes stdio.h (GH-28960) https://github.com/python/cpython/commit/284994762d820d8e09cc019f8f7c4bc501e37dd4

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27249 pull_request: https://github.com/python/cpython/pull/28960 ___ Python tracker <https://bugs.python.org/issue45

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

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

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset af1083e975b9627a5c97013d3a2b9aef0e4b333c by Victor Stinner in branch 'main': bpo-45474: Fix the limited C API of marshal.h (GH-28956) https://github.com/python/cpython/commit/af1083e975b9627a5c97013d3a2b9aef0e4b333c

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -23644 ___ Python tracker <https://bugs.python.org/issue35134> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since there is new activity on it :-) -- resolution: fixed -> status: closed -> open ___ Python tracker <https://bugs.python.org/i

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27247 pull_request: https://github.com/python/cpython/pull/28958 ___ Python tracker <https://bugs.python.org/issue35

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0a883a76cda8205023c52211968bcf87bd47fd6e by Victor Stinner in branch 'main': bpo-35134: Add Include/cpython/floatobject.h (GH-28957) https://github.com/python/cpython/commit/0a883a76cda8205023c52211968bcf87bd47fd6e

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
New submission from STINNER Victor : The Python C API provides "AS" functions to convert an object to another type, like PyFloat_AS_DOUBLE(). These macros can be abused to be used as l-value: "PyFloat_AS_DOUBLE(obj) = new_value;". It prevents to change the PyFloat impl

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27246 pull_request: https://github.com/python/cpython/pull/28957 ___ Python tracker <https://bugs.python.org/issue35

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27245 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28956 ___ Python tracker <https://bugs.python.org/issu

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-14 Thread STINNER Victor
New submission from STINNER Victor : Include/marshal.h defines 2 functions with FILE* argument in the limited C API, whereas the PEP 384 disallows that: "In addition, functions expecting FILE* are not part of the ABI, to avoid depending on a specific version of the Microsoft C runtim

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I tried to remove the include from Python.h: -#include// memcpy() ... but it required me to modify 100+ files. I don't know the exact number, I gave up after 100 files. I was near half of C extensions built by setup.py, so the number total

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

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I decided to merge my PR to address https://bugs.python.org/issue45439 initial issue: "[C API] Move usage of **tp_vectorcall_offset** from public headers to the internal C API". Last years, I added `tstate` parameters to internal C functions. The

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

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3cc56c828d2d8f8659ea49447234bf0d2b87cd64 by Victor Stinner in branch 'main': bpo-45439: Move _PyObject_VectorcallTstate() to pycore_call.h (GH-28893) https://github.com/python/cpython/commit/3cc56c828d2d8f8659ea49447234bf0d2b87cd64

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue45452> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: I suppose that this issue can now be closed? -- ___ Python tracker <https://bugs.python.org/issue45467> ___ ___ Pytho

<    8   9   10   11   12   13   14   15   16   17   >