mirror of
https://github.com/python/cpython.git
synced 2026-04-15 08:11:10 +00:00
gh-128341: Use _Py_ABI_SLOT in stdlib modules (#145770)
Rename from _Py_INTERNAL_ABI_SLOT to _Py_ABI_SLOT and define the macro using _PyABIInfo_DEFAULT. Use the ABI slot in stdlib extension modules to enable running a check of ABI version compatibility. _tkinter, _tracemalloc and readline don't use the slots, hence they need explicit handling. Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
119fce7b88
commit
1887a95f51
96 changed files with 128 additions and 10 deletions
1
Python/Python-ast.c
generated
1
Python/Python-ast.c
generated
|
|
@ -18480,6 +18480,7 @@ astmodule_exec(PyObject *m)
|
|||
}
|
||||
|
||||
static PyModuleDef_Slot astmodule_slots[] = {
|
||||
_Py_ABI_SLOT,
|
||||
{Py_mod_exec, astmodule_exec},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue