From 1040a0ee4e6143a8b1879982f0bada34462e832c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 14 Nov 2026 22:25:54 +0100 Subject: [PATCH 1/2] gh-143869: Add PyLongWriter_Create() to What's New in Python 3.15 --- Doc/whatsnew/3.15.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 19fc5801cbe8a9..52bae4b66ce2f1 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -2526,6 +2526,17 @@ New features (Contributed by Victor Stinner in :gh:`141510`.) +* Add the ``PyLong`` export/import functions to the limited C API: + + * :c:func:`PyLong_GetNativeLayout` + * :c:func:`PyLong_Export` + * :c:func:`PyLong_FreeExport` + * :c:func:`PyLongWriter_Create` + * :c:func:`PyLongWriter_Finish` + * :c:func:`PyLongWriter_Discard` + + (Contributed by Sergey B Kirpichev in :gh:`143869`.) + * Add :c:func:`PyObject_CallFinalizerFromDealloc` function to the limited C API. (Contributed by Victor Stinner in :gh:`146063`.) From 86416a6e8ff80214877bc5a117d07fe543b29423 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 14 Nov 2026 22:54:24 +0100 Subject: [PATCH 2/2] Apply suggestion from @skirpichev Co-authored-by: Sergey B Kirpichev --- Doc/whatsnew/3.15.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 52bae4b66ce2f1..b07c94287bdee6 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -2526,7 +2526,7 @@ New features (Contributed by Victor Stinner in :gh:`141510`.) -* Add the ``PyLong`` export/import functions to the limited C API: +* Add the :pep:`757` export/import functions to the limited C API: * :c:func:`PyLong_GetNativeLayout` * :c:func:`PyLong_Export`