.. _cpyext: ++++++++++++++++++ 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. Source ====== See `pypy/module/cpyext/ `_ and `cpyext/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 :ref:`Borrowed references `. Replace macros with functions ============================= Already done in cpyext.