PyPy cpyext module — pythoncapi 0.1 documentation (original) (raw)

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.

Source

See pypy/module/cpyext/ andcpyext/stubs.py.

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.