PyPy cpyext module

cpyext is the implementation of the C API in PyPy.

See Ronan Lamy’s talk Adventures in compatibility emulating CPython’s C API in PyPy (YouTube video) at EuroPython 2018.


See pypy/module/cpyext/ and cpyext/

cpyext has unit tests written in Python.

Performance issue

PyPy with cpyext remains slower than CPython.

XXX how much?

Issue with borrowed references

See Borrowed references.

Replace macros with functions

Already done in cpyext.