dcwatson / deflate

Python extension wrapper for libdeflate.
MIT License
25 stars 6 forks source link

Stable ABI #47

Closed dcwatson closed 2 months ago

dcwatson commented 2 months ago
dcwatson commented 2 months ago

I don't think this is going to work (yet). The biggest issue is that Py_buffer was not stabilized until 3.11. I could change the API to just accept bytes, or just read-only bytes-like objects (via the y# format), but would rather not.

henryiii commented 2 months ago

It was not added to the Stable ABI, that doesn't mean it wasn't stable.

henryiii commented 2 months ago

The biggest issue is that Py_buffer was not stabilized until 3.11.

It's the "Limited API" and "Stable ABI". Something can be a stable part of the API but not be part of the "Limited API".