Skip to content

Add support for free-threaded CPython 3.13t #401

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rostan-t
Copy link

This PR proposes adding support for free-threaded Python.

This requires bumping PyO3 to a newer version as support was added in version 0.23.0. If I'm not missing anything, the library is already thread-safe so no other change is required apart from fixing warnings introduced by PyO3 0.23.

Note: Unfortunately, regex doesn't declare free-threading support and there doesn't seem to be a plan to do so1. Disabling the GIL therefore still requires passing setting PYTHON_GIL=0 or -Xgil=0.

Footnotes

  1. https://github.com/mrabarnett/mrab-regex/issues/565#issuecomment-2818966984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant