Design a new better C API for Python — pythoncapi 0.1 documentation (original) (raw)

Subtitle: “Make the stable API usable”.

PyPy and Gilectomy projects are using different approaches to optimize Python, but their performance are limited by the current C API on C extensions. The C API should be “fixed” to unlock raw performances!

To be able to introduce backward incompatible changes to the C API without breaking too many C extensions, this project proposes two things:

The current C API has multiple issues:

Existing C extensions will still be supported and will not have to be modified. The old C API is not deprecated and there is no plan penalize users of the old C API.

Table of Contents