From 32a8408dd824deeef33287d530438ef177f9ffb0 Mon Sep 17 00:00:00 2001 From: TheLouis Mahdi Date: Mon, 2 Nov 2026 10:34:49 +0330 Subject: [PATCH 1/2] gh-161078: Correct unstable C API PEP references --- Doc/whatsnew/3.12.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index d822d83164db6f..0e8df4a28bbf4a 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -133,7 +133,7 @@ Security improvements: C API improvements: -* :ref:`PEP 697 `, unstable C API tier +* :ref:`PEP 689 `, unstable C API tier * :ref:`PEP 683 `, immortal objects CPython implementation improvements: @@ -1861,9 +1861,9 @@ C API Changes New Features ------------ -.. _whatsnew312-pep697: +.. _whatsnew312-pep689: -* :pep:`697`: Introduce the :ref:`Unstable C API tier `, +* :pep:`689`: Introduce the :ref:`Unstable C API tier `, intended for low-level tools like debuggers and JIT compilers. This API may change in each minor release of CPython without deprecation warnings. From 53a8277f4e349f87bbcae4f4d3ddeff889e3489c Mon Sep 17 00:00:00 2001 From: TheLouis Mahdi Date: Tue, 3 Nov 2026 13:28:25 +0330 Subject: [PATCH 2/2] gh-161078: Preserve the PEP 697 documentation anchor --- Doc/whatsnew/3.12.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 0e8df4a28bbf4a..864105d43c90dc 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1885,6 +1885,8 @@ New Features (Contributed by Petr Viktorin in :gh:`101101`.) +.. _whatsnew312-pep697: + * :pep:`697`: Add an API for extending types whose instance memory layout is opaque: