Guide to porting C extension to python free-threaded 3.13?

Is there a guide to porting C extensions to the free-threading build? Or are there modules in the CPython source tree (or external modules) that can serve as examples of what to do?

1 Like

There’s a pending PR to add this. gh-119241: Add HOWTO for free-threaded C API extensions by colesbury · Pull Request #119877 · python/cpython · GitHub. It probably has a reasonable overlap with the Quansight one already linked though

1 Like

Our group at Quansight Labs put together py-free-threading.github.io to share knowledge about porting C extensions. This is a central place for information that doesn’t make sense in the CPython documentation.

The content are stored in the repository @network-shark linked above and that repo is still the place to look for ecosystem-wide tracking issues as well as issues tracking progress for individual projects.

9 Likes