[capi-sig]Re: Let's change to C API!
On 2018-07-31 14:02, Ronald Oussoren wrote:
I haven’t had time yet to read through those pages, but I wonder if there shouldn’t be (at least) three levels of API:
- More or less the current full API (with some cleanups), but with full access to internals
- Smaller API without access to type internals, but with PyTypeObject and supporting types
- The restricted API with a stable ABI (PEP 384)
That's exactly the current situation. Your "level 1" is the undocumented API, "level 2" is the documented API and "level 3" is the PEP 384 API.
On 31 Jul 2018, at 14:12, Jeroen Demeyer J.Demeyer@UGent.be wrote:
On 2018-07-31 14:02, Ronald Oussoren wrote:
I haven’t had time yet to read through those pages, but I wonder if there shouldn’t be (at least) three levels of API:
- More or less the current full API (with some cleanups), but with full access to internals
- Smaller API without access to type internals, but with PyTypeObject and supporting types
- The restricted API with a stable ABI (PEP 384)
That's exactly the current situation. Your "level 1" is the undocumented API, "level 2" is the documented API and "level 3" is the PEP 384 API.
Except that there is currently no clear boundary between 1 and 2, other than the documentation (mostly, sometimes public APIs are added without documentation)
Ronald
participants (2)
-
Jeroen Demeyer
-
Ronald Oussoren