[Python-checkins] Add symbols of the stable ABI to python3dll.c (GH-23598)

vstinner webhook-mailer at python.org
Wed Dec 16 09:08:32 EST 2020


https://github.com/python/cpython/commit/fcc6935384b933fbe1a1ef659ed455a3b74c849a
commit: fcc6935384b933fbe1a1ef659ed455a3b74c849a
branch: master
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2020-12-16T15:08:23+01:00
summary:

Add symbols of the stable ABI to python3dll.c (GH-23598)

Add the following symbols to python3dll.c:

* PyFrame_GetCode (bpo-40421)
* PyFrame_GetLineNumber (bpo-40421)
* PyModule_AddObjectRef (bpo-1635741)
* PyObject_CallNoArgs (bpo-37194)
* PyThreadState_GetFrame (bpo-39947)
* PyThreadState_GetID (bpo-39947)
* PyThreadState_GetInterpreter (bpo-39947)

files:
M PC/python3dll.c

diff --git a/PC/python3dll.c b/PC/python3dll.c
index 9eb81e36af001..fa44a46fb7622 100644
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -257,6 +257,8 @@ EXPORT_FUNC(PyFloat_FromString)
 EXPORT_FUNC(PyFloat_GetInfo)
 EXPORT_FUNC(PyFloat_GetMax)
 EXPORT_FUNC(PyFloat_GetMin)
+EXPORT_FUNC(PyFrame_GetLineNumber)
+EXPORT_FUNC(PyFrame_GetCode)
 EXPORT_FUNC(PyFrozenSet_New)
 EXPORT_FUNC(PyGC_Collect)
 EXPORT_FUNC(PyGILState_Ensure)
@@ -405,6 +407,7 @@ EXPORT_FUNC(PyObject_CallFunction)
 EXPORT_FUNC(PyObject_CallFunctionObjArgs)
 EXPORT_FUNC(PyObject_CallMethod)
 EXPORT_FUNC(PyObject_CallMethodObjArgs)
+EXPORT_FUNC(PyObject_CallNoArgs)
 EXPORT_FUNC(PyObject_CallObject)
 EXPORT_FUNC(PyObject_Calloc)
 EXPORT_FUNC(PyObject_ClearWeakRefs)
@@ -535,6 +538,9 @@ EXPORT_FUNC(PyThreadState_Delete)
 EXPORT_FUNC(PyThreadState_DeleteCurrent)
 EXPORT_FUNC(PyThreadState_Get)
 EXPORT_FUNC(PyThreadState_GetDict)
+EXPORT_FUNC(PyThreadState_GetFrame)
+EXPORT_FUNC(PyThreadState_GetID)
+EXPORT_FUNC(PyThreadState_GetInterpreter)
 EXPORT_FUNC(PyThreadState_New)
 EXPORT_FUNC(PyThreadState_SetAsyncExc)
 EXPORT_FUNC(PyThreadState_Swap)
@@ -791,6 +797,7 @@ EXPORT_DATA(PyMemoryView_Type)
 EXPORT_DATA(PyMethodDescr_Type)
 EXPORT_DATA(PyModule_Type)
 EXPORT_DATA(PyModuleDef_Type)
+EXPORT_DATA(PyModule_AddObjectRef)
 EXPORT_DATA(PyNullImporter_Type)
 EXPORT_DATA(PyODict_Type)
 EXPORT_DATA(PyODictItems_Type)



More information about the Python-checkins mailing list