Split Include/ directory¶
Currently, the stable API (Py_LIMITED_API), the private functions (
prefix), functions that must only be used in CPython core (
and other functions (regular C API) are all defined in the same file. The 3 API
- Py_BUILD_CORE: API only intended to be used by CPython internals
- Py_LIMITED_API: API for the stable ABI
- other is the current C API
In the past, many functions have been added to the wrong API level, just because everything is at the same place. To prevent such mistakes, headers files should be reorganized with clearly separated files.