[Python-Dev] New C API not leaking implementation details: an usable stable ABI

Victor Stinner victor.stinner at gmail.com
Wed Sep 6 21:16:00 EDT 2017


I am currently at a CPython sprint 2017 at Facebook. We are discussing
my idea of writing a new C API for CPython hiding implementation
details and replacing macros with function calls.

I wrote a short blog post to explain the issue of the current API, the
link between the API and the ABI, and give examples of optimizations
which become possible with an "unsable" stable ABI:


I am sorry, I'm too busy to write a proper PEP. But here is the link
to my old PEP draft written in June. I didn't update it yet. But
multiple people are asking me for the PEP draft, so here you have!


See also the thread on python-ideas last June, where I first proposed my draft:

[Python-ideas] PEP: Hide implementation details in the C API

This is not a request for comments :-) I will write a proper PEP for that.


More information about the Python-Dev mailing list