https://github.com/python/cpython/commit/7d81eab923f71f6b7e80f130bc3ad5ca613b88fd
commit: 7d81eab923f71f6b7e80f130bc3ad5ca613b88fd
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2025-12-17T16:33:09+01:00
summary:
gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi
(GH-142833)
files:
M Modules/_testcapimodule.c
M Modules/_testinternalcapi.c
M Tools/c-analyzer/cpython/_analyzer.py
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index c14f925b4e7632..de6d3cbce54fbe 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -3523,7 +3523,10 @@ _testcapi_exec(PyObject *m)
return 0;
}
+PyABIInfo_VAR(abi_info);
+
static PyModuleDef_Slot _testcapi_slots[] = {
+ {Py_mod_abi, &abi_info},
{Py_mod_exec, _testcapi_exec},
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c
index 4140cd23ded95e..a7fbb0f87b6e9c 100644
--- a/Modules/_testinternalcapi.c
+++ b/Modules/_testinternalcapi.c
@@ -2696,7 +2696,10 @@ module_exec(PyObject *module)
return 0;
}
+PyABIInfo_VAR(abi_info);
+
static struct PyModuleDef_Slot module_slots[] = {
+ {Py_mod_abi, &abi_info},
{Py_mod_exec, module_exec},
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
diff --git a/Tools/c-analyzer/cpython/_analyzer.py
b/Tools/c-analyzer/cpython/_analyzer.py
index 6f0f464892845f..43ed552fcf75d9 100644
--- a/Tools/c-analyzer/cpython/_analyzer.py
+++ b/Tools/c-analyzer/cpython/_analyzer.py
@@ -76,6 +76,7 @@
'PyBufferProcs',
'PyStructSequence_Field[]',
'PyStructSequence_Desc',
+ 'PyABIInfo',
}
# XXX We should normalize all cases to a single name,
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]