On Fri, Nov 6, 2026 at 3:28 PM Ralf Gommers via NumPy-Discussion
<[email protected]> wrote:
>
>
> It would be good to hear about the Limited C API support plans for PyPy. You 
> were working on that, right Matti? As a more niche target, it'd be good if it 
> were possible to transition PyPy wheels to the Stable ABI.
>
> Cheers,
> Ralf

Thanks for the vote of confidence.

PyPy3.12  v8.0.0 can load cp312-abi3 c-extension shared objects on
posix platforms it supports. Windows and a hacked pip installer are
coming in 8.0.2, which should be out soon. This will provide support
for cp-abi3 wheels from `pypy -m pip install ...`. Unfortunately it
does not seem that the uptake of cp312-abi3 wheels is very large. I
summarized the current status of PyPi packages and abi3 support in a
PyPy issue https://github.com/pypy/pypy/issues/3397#issuecomment-4918641793,
TL;DR is that it will be a while before cp312-abi3 becomes more
popular. My reading of ground is that there is no urgency on the side
of CPython to make a performant limited C-API, given that the major
enabling factor for PyPy:  turning Py_INCREF and Py_DECREF from macros
into functions, makes those calls slower. And without a performant
C-API, packages like NumPy will be reluctant to move to the limited
API.

Matti
_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/numpy-discussion.python.org
Member address: [email protected]

Reply via email to