C API and ABI Stability — Python 3.16.0a0 documentation

docs.python.org

Tin mới

The Very High Level Layer

Python Module Index

3.16.0a0 Documentation

Python/C API reference manual

Stable Application Binary Interfaces¶

Python’s Stable ABI allows extensions to be compatible with multiple versions of Python, without recompilation.

Stable Application Binary Interfaces¶

Python’s Stable ABI allows extensions to be compatible with multiple versions of Python, without recompilation.

ctypes: A foreign function library for Python.

Python’s Stable ABI allows extensions to be compatible with multiple versions of Python, without recompilation.

Compiling for Stable ABI¶

Build tools (such as, for example, meson-python, scikit-build-core, or Setuptools) often have a mechanism for setting macros and synchronizing them with extension filenames and other metadata. Prefer using such a mechani

Compiling for Stable ABI¶

Build tools (such as, for example, meson-python, scikit-build-core, or Setuptools) often have a mechanism for setting macros and synchronizing them with extension filenames and other metadata. Prefer using such a mechani

Stable ABI Scope and Performance¶

The goal for Stable ABI is to allow everything that is possible with the full C API, but possibly with a performance penalty. Generally, compatibility with Stable ABI will require some changes to an extension’s source co

PY_VECTORCALL_ARGUMENTS_OFFSET

PyArg_ParseTuple()

PyBUF_ANY_CONTIGUOUS

PyByteArrayIter_Type

PyByteArray_AsString()

PyBytes_AsString()

PyCFunctionFastWithKeywords

PyCapsule_Destructor

PyClassMethodDescr_Type

PyCodec_BackslashReplaceErrors()

PyComplex_FromDoubles()

PyCriticalSection2

PyDict_DelItemString()

PyErr_BadArgument()

PyEval_AcquireThread()

PyEval_GetBuiltins()

PyFile_WriteObject()

PyFloat_AsDouble()

PyFrame_GetLineNumber()

PyImport_AddModule()

PyInterpreterGuard

PyInterpreterState

PyLongWriter_Create()

PyMapping_GetItemString()

PyMem_RawRealloc()

PyMemoryView_FromBuffer()

PyModuleDef_Init()

PyModule_GetState_DuringGC()

PyNumber_Absolute()

PyOS_AfterFork_Child()

PyOS_double_to_string()

PyObject_CallFinalizerFromDealloc()

PyObject_ClearWeakRefs()

PyObject_DelAttr()

PyObject_InitVar()

PySequence_Check()

PySlice_AdjustIndices()

PySlot_STATIC_DATA

PyStructSequence_Desc

PyThread_ReInitTLS()