From fe432f29e1b092fbef4c2960ca7666d70d3a2b5e Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Wed, 4 Dec 2024 06:06:32 +0300 Subject: [PATCH 1/4] Remove implementation details from PyLongExport docs --- peps/pep-0757.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/peps/pep-0757.rst b/peps/pep-0757.rst index 6b72ae3588b..0807ff3dd05 100644 --- a/peps/pep-0757.rst +++ b/peps/pep-0757.rst @@ -133,10 +133,11 @@ Export API Read-only array of unsigned digits. Can be ``NULL``. - If :c:member:`digits` not ``NULL``, a private field of the - :c:struct:`PyLongExport` structure stores a strong reference to the Python - :class:`int` object to make sure that that structure remains valid until - :c:func:`PyLong_FreeExport()` is called. + +If :c:member:`PyLongExport.digits` not ``NULL``, a private field of the +:c:struct:`PyLongExport` structure stores a strong reference to the Python +:class:`int` object to make sure that that structure remains valid until +:c:func:`PyLong_FreeExport()` is called. .. c:function:: int PyLong_Export(PyObject *obj, PyLongExport *export_long) From 8912b56e741abba819081798e8941d04abb76479 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 9 Dec 2024 03:46:27 +0300 Subject: [PATCH 2/4] Set PEP 757 status to Accepted --- peps/pep-0757.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/peps/pep-0757.rst b/peps/pep-0757.rst index 0807ff3dd05..19ac775b797 100644 --- a/peps/pep-0757.rst +++ b/peps/pep-0757.rst @@ -3,11 +3,12 @@ Title: C API to import-export Python integers Author: Sergey B Kirpichev , Victor Stinner Discussions-To: https://discuss.python.org/t/63895 -Status: Draft +Status: Accepted Type: Standards Track Created: 13-Sep-2024 Python-Version: 3.14 Post-History: `14-Sep-2024 `__ +Resolution: https://discuss.python.org/t/63895/79 .. highlight:: c From c16348bf50b2998ea4f44f7de254310424b827a4 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 9 Dec 2024 06:00:48 +0300 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: Alyssa Coghlan --- peps/pep-0757.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0757.rst b/peps/pep-0757.rst index b0157ec5aae..0ad329452ad 100644 --- a/peps/pep-0757.rst +++ b/peps/pep-0757.rst @@ -8,7 +8,7 @@ Type: Standards Track Created: 13-Sep-2024 Python-Version: 3.14 Post-History: `14-Sep-2024 `__ -Resolution: https://discuss.python.org/t/63895/79 +Resolution: `8-Dec-2024 `__ .. highlight:: c @@ -135,7 +135,7 @@ Export API Read-only array of unsigned digits. Can be ``NULL``. -If :c:member:`PyLongExport.digits` not ``NULL``, a private field of the +If :c:member:`PyLongExport.digits` is not ``NULL``, a private field of the :c:struct:`PyLongExport` structure stores a strong reference to the Python :class:`int` object to make sure that that structure remains valid until :c:func:`PyLong_FreeExport()` is called. From 8834428495a0f068fe6bb1a93699618c0977ccff Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 9 Dec 2024 06:39:00 +0300 Subject: [PATCH 4/4] fix pre-commit --- peps/pep-0757.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0757.rst b/peps/pep-0757.rst index 0ad329452ad..6a1f5cd52df 100644 --- a/peps/pep-0757.rst +++ b/peps/pep-0757.rst @@ -8,7 +8,7 @@ Type: Standards Track Created: 13-Sep-2024 Python-Version: 3.14 Post-History: `14-Sep-2024 `__ -Resolution: `8-Dec-2024 `__ +Resolution: `08-Dec-2024 `__ .. highlight:: c