Skip to content

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