Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Cython's array to back Py_ssize_t[::1] #307

Merged
merged 1 commit into from
Oct 22, 2024

Commits on Oct 22, 2024

  1. 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
    jakirkham committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    30374c6 View commit details
    Browse the repository at this point in the history