From d6db639eb301b0163d0546785228ef11d72cff79 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 30 Nov 2026 11:53:44 +0100 Subject: [PATCH] gh-158401: Mention Py_INCREF() change in What's New in Python 3.14/15 Add "Notable changes in 3.x.y" sections. --- Doc/whatsnew/3.14.rst | 38 ++++++++++++++++++++++++++++++++++++++ Doc/whatsnew/3.15.rst | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index c0123802a59f03..e67fbf66250bdf 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -3492,6 +3492,16 @@ Changes in the C API .. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/ +Notable changes in 3.14.1 +========================= + +* Add :c:func:`PyUnstable_ThreadState_SetStackProtection` and + :c:func:`PyUnstable_ThreadState_ResetStackProtection` functions to set + the stack protection base address and stack protection size of a Python + thread state. + (Contributed by Victor Stinner in :gh:`139653`.) + + Notable changes in 3.14.5 ========================= @@ -3504,3 +3514,31 @@ gc `__ of significant memory pressure in production environments. See :ref:`whatsnew314-incremental-gc` for details. + + +Notable changes in 3.14.10 +========================== + +ssl +--- + +* The :mod:`ssl` module now rejects TLS certificate chains that contain one + of a set of compromised eMudhra intermediate CA certificates. The affected + certificates are identified by their public key, so cross-signed copies that + reuse the same key are blocked as well. It is a defense-in-depth backstop + that applies even when an application supplies its own root CA bundle, and + regardless of whether the platform trust store has removed trust. + (Contributed by Christian Heimes in :gh:`160040` for :cve:`2026-115557`.) + + +Notable changes in 3.14.11 +========================== + +C API changes +------------- + +* :c:func:`Py_INCREF`, :c:func:`Py_XINCREF`, :c:func:`Py_DECREF` and + :c:func:`Py_XDECREF` are now implemented as function calls on all limited C + API versions. Previously, they were only implemented as function calls on + the limited C API version 3.12 or newer. Patch by Victor Stinner: + (Contributed by Victor Stinner in :gh:`158401`.) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index d2cfb7a4fab67e..7aa5dc0fc875df 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -2937,3 +2937,43 @@ that may require changes to your code. Use warning filters to silence them or additional :meth:`!assertWarns*` to catch and check them. (Contributed by Serhiy Storchaka in :gh:`143231`.) + + +Notable changes in 3.15.2 +========================= + +importlib +--------- + +* Threads that simultaneously perform first-time ``import package.submodule`` + imports no longer risk a deadlock or spurious import errors, a regression + introduced in 3.15.0 by the fix for :gh:`83065`. A package's import lock is + now released as soon as its ``__init__`` returns. + :func:`importlib.import_module` now returns the partially initialized + module in a circular import split across threads, as the :keyword:`import` + statement already did, instead of raising ``_DeadlockError``. + (Contributed by Gregory P. Smith in :gh:`159963`.) + +ssl +--- + +* The :mod:`ssl` module now rejects TLS certificate chains that contain one + of a set of compromised eMudhra intermediate CA certificates. The affected + certificates are identified by their public key, so cross-signed copies that + reuse the same key are blocked as well. It is a defense-in-depth backstop + that applies even when an application supplies its own root CA bundle, and + regardless of whether the platform trust store has removed trust. + (Contributed by Christian Heimes in :gh:`160040` for :cve:`2026-115557`.) + + +Notable changes in 3.15.3 +========================= + +C API changes +------------- + +* :c:func:`Py_INCREF`, :c:func:`Py_XINCREF`, :c:func:`Py_DECREF` and + :c:func:`Py_XDECREF` are now implemented as function calls on all limited C + API versions. Previously, they were only implemented as function calls on + the limited C API version 3.12 or newer. Patch by Victor Stinner: + (Contributed by Victor Stinner in :gh:`158401`.)