python / pythoncapi-compat

The pythoncapi-compat project can be used to write a C extension supporting a wide range of Python versions with a single code base.
https://pythoncapi-compat.readthedocs.io/
BSD Zero Clause License
76 stars 22 forks source link

Add shims for critical section macros #105

Closed ngoldbaum closed 1 week ago

ngoldbaum commented 1 month ago

https://docs.python.org/3.13/c-api/init.html#python-critical-section-api

On older pythons these can just be open and close brace.

vstinner commented 1 month ago

@ngoldbaum: yeah, it makes sense. Do you want to propose a PR for that?

vstinner commented 1 week ago

Implemented by https://github.com/python/pythoncapi-compat/pull/106