[Python-checkins] bpo-28254: Add PyGC_ functions to the stable ABI manifest (GH-25720)

encukou webhook-mailer at python.org
Thu Apr 29 09:47:07 EDT 2021


https://github.com/python/cpython/commit/14fc2bdfab857718429029e53ceffca456178827
commit: 14fc2bdfab857718429029e53ceffca456178827
branch: master
author: Petr Viktorin <encukou at gmail.com>
committer: encukou <encukou at gmail.com>
date: 2021-04-29T15:46:48+02:00
summary:

bpo-28254: Add PyGC_ functions to the stable ABI manifest (GH-25720)

Co-authored-by: Senthil Kumaran <senthil at uthcode.com>
Co-authored-by: scoder <stefan_ml at behnel.de>

files:
M Misc/stable_abi.txt
M PC/python3dll.c

diff --git a/Misc/stable_abi.txt b/Misc/stable_abi.txt
index efb2731f595a22..2a802bd5f4b831 100644
--- a/Misc/stable_abi.txt
+++ b/Misc/stable_abi.txt
@@ -2139,6 +2139,15 @@ const Py_am_send
     added 3.10
 
 
+# New GC control functions in Py3.10 (https://bugs.python.org/issue28254)
+
+function PyGC_Disable
+    added 3.10
+function PyGC_Enable
+    added 3.10
+function PyGC_IsEnabled
+    added 3.10
+
+
 # (Detailed comments aren't really needed for further entries: from here on
 #  we can use version control logs.)
-
diff --git a/PC/python3dll.c b/PC/python3dll.c
index a53ec63e038f9f..574d4dcad9f75b 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -271,6 +271,9 @@ EXPORT_FUNC(PyFrame_GetCode)
 EXPORT_FUNC(PyFrame_GetLineNumber)
 EXPORT_FUNC(PyFrozenSet_New)
 EXPORT_FUNC(PyGC_Collect)
+EXPORT_FUNC(PyGC_Disable)
+EXPORT_FUNC(PyGC_Enable)
+EXPORT_FUNC(PyGC_IsEnabled)
 EXPORT_FUNC(PyGILState_Ensure)
 EXPORT_FUNC(PyGILState_GetThisThreadState)
 EXPORT_FUNC(PyGILState_Release)



More information about the Python-checkins mailing list