diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-11 20:47:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 20:47:54 (GMT) |
commit | 6f4a49942bec5bb15b2ebb7ec19fd43c052305a1 (patch) | |
tree | 9fe40d94f30b24a0682404277dd1efb4f73d3ccf /Doc | |
parent | 718391f475f2550d99dd794069ca76312f7f6aa6 (diff) | |
download | cpython-6f4a49942bec5bb15b2ebb7ec19fd43c052305a1.zip cpython-6f4a49942bec5bb15b2ebb7ec19fd43c052305a1.tar.gz cpython-6f4a49942bec5bb15b2ebb7ec19fd43c052305a1.tar.bz2 |
gh-85283: If Py_LIMITED_API is defined, undefine Py_BUILD_CORE (#110725)
If the Py_LIMITED_API macro is defined, Py_BUILD_CORE,
Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros are now
undefined by Python.h.
Only undefine these 3 macros after including "exports.h" which uses
them to define PyAPI_FUNC(), PyAPI_DATA() and PyMODINIT_FUNC macros.
Remove hacks (undefine manually the 3 Py_BUILD_CORE macros) in
Modules/_testcapi/parts.h and Modules/_testclinic_limited.c.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.13.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index bbc1fec..b0a0d89 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -1075,6 +1075,11 @@ Porting to Python 3.13 :c:func:`!Py_TOLOWER`. (Contributed by Victor Stinner in :gh:`108765`.) +* If the :c:macro:`Py_LIMITED_API` macro is defined, :c:macro:`!Py_BUILD_CORE`, + :c:macro:`!Py_BUILD_CORE_BUILTIN` and :c:macro:`!Py_BUILD_CORE_MODULE` macros + are now undefined by ``<Python.h>``. + (Contributed by Victor Stinner in :gh:`85283`.) + Deprecated ---------- |