Skip to content

Support for the free-threaded build of CPython 3.13 #1014

Closed
@lysnikolaou

Description

@lysnikolaou

Long story short

Hey all! 👋

I took the liberty of looking into adding support for the 3.13 free-threaded build of CPython. This aims to be a tracking issue for all work necessary to support it, for which I'm going to open a PR shortly.

  • Set up CI for free-threading
  • Move away from APIs that use borrowed references (PyList_GetItem, PyDict_GetItem and friends) under the free-threaded build
  • Audit the C extension module for thread-safety issues
    • There currently only seem to be issues with pair_list_global_version. If there's something else that I might've missed, please let me know.
  • Mark the C extension module as thread-safe with PyUnstable_Module_SetGIL
  • Build wheels for the free-threaded build.

Hope this all sounds good! Let me know in case there's something that doesn't seem right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions