From: Victor Stinner Date: Tue, 6 Jun 2023 14:50:58 +0000 (+0200) Subject: gh-102304: Document Py_INCREF() change in What's New in Python 3.12 (#105389) X-Git-Tag: v3.13.0a1~1877 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a975b5e92736cd2f68a09aa71a17d373b9355e9;p=thirdparty%2FPython%2Fcpython.git gh-102304: Document Py_INCREF() change in What's New in Python 3.12 (#105389) Not in Python 3.13. --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 7e7942550a79..79491b4bfdfd 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1536,6 +1536,15 @@ Build Changes :file:`!configure`. (Contributed by Christian Heimes in :gh:`89886`.) +* C extensions built with the :ref:`limited C API ` + on :ref:`Python build in debug mode ` no longer support Python + 3.9 and older. In this configuration, :c:func:`Py_INCREF` and + :c:func:`Py_DECREF` are now always implemented as opaque function calls, + but the called functions were added to Python 3.10. Build C extensions + with a release build of Python or with Python 3.12 and older, to keep support + for Python 3.9 and older. + (Contributed by Victor Stinner in :gh:`102304`.) + C API Changes ============= diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 9cfccdeac787..35e6303c370e 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -354,15 +354,6 @@ Build Changes :file:`!configure`. (Contributed by Christian Heimes in :gh:`89886`.) -* C extensions built with the :ref:`limited C API ` - on :ref:`Python build in debug mode ` no longer support Python - 3.9 and older. In this configuration, :c:func:`Py_INCREF` and - :c:func:`Py_DECREF` are now always implemented as opaque function calls, - but the called functions were added to Python 3.10. Build C extensions - with a release build of Python or with Python 3.12 and older, to keep support - for Python 3.9 and older. - (Contributed by Victor Stinner in :gh:`102304`.) - C API Changes =============