summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-02-16 21:05:31 (GMT)
committerGitHub <noreply@github.com>2023-02-16 21:05:31 (GMT)
commit4d8959b73ac194ca9a2f623dcb5c23680f7d8536 (patch)
tree6856f3c336d38f4531f3e926d121bf1613ce3bd2 /PC
parenta5024a261a75dafa4fb6613298dcb64a9603d9c7 (diff)
downloadcpython-4d8959b73ac194ca9a2f623dcb5c23680f7d8536.zip
cpython-4d8959b73ac194ca9a2f623dcb5c23680f7d8536.tar.gz
cpython-4d8959b73ac194ca9a2f623dcb5c23680f7d8536.tar.bz2
gh-101758: Add _PyState_AddModule() Back for the Stable ABI (gh-101956)
We're adding the function back, only for the stable ABI symbol and not as any form of API. I had removed it yesterday. This undocumented "private" function was added with the implementation for PEP 3121 (3.0, 2007) for internal use and later moved out of the limited API (3.6, 2016) and then into the internal API (3.9, 2019). I removed it completely yesterday, including from the stable ABI manifest (where it was added because the symbol happened to be exported). It's unlikely that anyone is using _PyState_AddModule(), especially any stable ABI extensions built against 3.2-3.5, but we're playing it safe. https://github.com/python/cpython/issues/101758
Diffstat (limited to 'PC')
-rwxr-xr-xPC/python3dll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c
index 79f0903..e300819 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -34,6 +34,7 @@ EXPORT_FUNC(_PyObject_GC_NewVar)
EXPORT_FUNC(_PyObject_GC_Resize)
EXPORT_FUNC(_PyObject_New)
EXPORT_FUNC(_PyObject_NewVar)
+EXPORT_FUNC(_PyState_AddModule)
EXPORT_FUNC(_PyThreadState_Init)
EXPORT_FUNC(_PyThreadState_Prealloc)
EXPORT_FUNC(Py_AddPendingCall)