Old C API — pythoncapi 0.1 documentation (original) (raw)

The “current” or “old” C API is the Python 3.7 API which “leaks” implementation details like PyObject.ob_refcnt through Py_INCREF() macro.

With the new C API, the old C API will remain available thanks to theregular runtime, for CPython internals, for specific use cases like Cython (for best performances) anddebugging tools, but also for the long tail of C extensions on PyPI.

See also Calling conventions.

What is the Python C API?

Current Python C API