Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Cython's
array
to back Py_ssize_t[::1]
In `Array`, `Py_ssize_t[::1]` objects are currently backed by CPython `array`'s with some internal bits expressed in Cython. However these are not compatible with Python's Limited API and Stable ABI. To address that, switch to Cython's own`array` type. As this is baked into Cython and doesn't use anything special, it is compatible with Python's Limited API and Stable ABI. https://cython.readthedocs.io/en/latest/src/userguide/memoryviews.html#cython-arrays
- Loading branch information