encukou / abi3

Improvements of Python's stable ABI
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Document how extension authors need to test. #15

Closed encukou closed 3 years ago

encukou commented 3 years ago

IMO, you need to test with the minimum Python version that you want to support.

Example of why: In Python 3.10, PyType_GetSlot will start accepting more types. This change affects semantics but not ABI, and it is backwards compatible. If you use the 3.9 Stable ABI but don't actually test against 3.9, you won't find code that relies on the new behavior.

encukou commented 3 years ago

Documented in https://docs.python.org/3.10/c-api/stable.html#limited-api-caveats