3 ms·
PyPy exposes a subset of the CPython C API, which is good enough for many C extensions, and some others can be ported with little effort. Most other Python imp
by ptspts 3y ago
PyPy exposes a subset of the CPython C API, which is good enough for many C extensions, and some others can be ported with little effort.
Most other Python implementations don't provide any way to use CPython C extensions.
There is also the HPy API and ABI, which some C extensions target and multiple Python implementations can compile or load.
- galangalalgol 3y agoThere is a merge request up to add autogen rust bindings to hpy https://github.com/hpyproject/hpy/pull/457 https://github.com/hpyproject/hpy/pull/457