[go: up one dir, main page]

Module compat

Module compat 

Source
Expand description

C API Compatibility Shims

Some CPython C API functions added in recent versions of Python are inherently safer to use than older C API constructs. This module exposes functions available on all Python versions that wrap the old C API on old Python versions and wrap the function directly on newer Python versions.

Functions§

PyDict_GetItemRefdocsrs or non-Py_3_13
PyImport_AddModuleRefdocsrs or non-Py_3_13
PyList_Cleardocsrs or non-Py_3_13
PyList_Extenddocsrs or non-Py_3_13
PyList_GetItemRefdocsrs or non-Py_3_13
PyModule_Adddocsrs or non-Py_3_13
PyModule_AddObjectRefPy_3_10
PyObject_CallMethodNoArgsPy_3_9 and non-PyPy
PyObject_CallNoArgsNon-PyPy and (Py_3_10, or non-Py_LIMITED_API and Py_3_9)
PyWeakref_GetRefdocsrs or non-Py_3_13
Py_HashBufferdocsrs or not (Py_3_14 and non-Py_LIMITED_API)
Py_NewRefPy_3_10 and (non-Py_LIMITED_API or PyPy)
Py_XNewRefPy_3_10 and (non-Py_LIMITED_API or PyPy)