You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC: Add documentation about how to use NumPy with the Python limited API #31259
As part of #30704, we're adding support for the new abi3t ABI over in #31091. While working on that, we noticed that the narrative docs only mention the limited API in passing or in release notes.
Idea or request for content:
The docs should have a section on how to build extensions using the numpy C API and the Python limited API. It should eventually describe both abi3 and abi3t builds, although for now abi3 is all that's supported.
It could probably go in this section, along with the other build examples.
It may also make sense to talk about the limited API in the reference C API docs, to describe how some types and structures are either not exposed or have slightly different layouts in the Python stable ABI.
Hi all, just a note that I'm planning to add these docs eventually. I don't mind someone else trying in the meantime, but please don't use an AI model to generate these docs unless you understand the output of the AI model and can spot when it makes mistakes.
Activity
Vishwaspatel2401 commentedon Apr 16, 2026
DOC: Add documentation for using NumPy with the Python Limited API
ngoldbaum commentedon Apr 21, 2026
Hi all, just a note that I'm planning to add these docs eventually. I don't mind someone else trying in the meantime, but please don't use an AI model to generate these docs unless you understand the output of the AI model and can spot when it makes mistakes.
manish-9245 commentedon Oct 14, 2026
Hi, per @ngoldbaum note that help is welcome here — I would like to add the limited API docs section for abi3/abi3t usage. Small docs PR. Thanks!