Skip to content

Commit 3a975b5

Browse files
authored
gh-102304: Document Py_INCREF() change in What's New in Python 3.12 (#105389)
Not in Python 3.13.
1 parent 0418196 commit 3a975b5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,15 @@ Build Changes
15361536
:file:`!configure`.
15371537
(Contributed by Christian Heimes in :gh:`89886`.)
15381538

1539+
* C extensions built with the :ref:`limited C API <limited-c-api>`
1540+
on :ref:`Python build in debug mode <debug-build>` no longer support Python
1541+
3.9 and older. In this configuration, :c:func:`Py_INCREF` and
1542+
:c:func:`Py_DECREF` are now always implemented as opaque function calls,
1543+
but the called functions were added to Python 3.10. Build C extensions
1544+
with a release build of Python or with Python 3.12 and older, to keep support
1545+
for Python 3.9 and older.
1546+
(Contributed by Victor Stinner in :gh:`102304`.)
1547+
15391548

15401549
C API Changes
15411550
=============

Doc/whatsnew/3.13.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -354,15 +354,6 @@ Build Changes
354354
:file:`!configure`.
355355
(Contributed by Christian Heimes in :gh:`89886`.)
356356

357-
* C extensions built with the :ref:`limited C API <limited-c-api>`
358-
on :ref:`Python build in debug mode <debug-build>` no longer support Python
359-
3.9 and older. In this configuration, :c:func:`Py_INCREF` and
360-
:c:func:`Py_DECREF` are now always implemented as opaque function calls,
361-
but the called functions were added to Python 3.10. Build C extensions
362-
with a release build of Python or with Python 3.12 and older, to keep support
363-
for Python 3.9 and older.
364-
(Contributed by Victor Stinner in :gh:`102304`.)
365-
366357

367358
C API Changes
368359
=============

0 commit comments

Comments
 (0)