Skip to content

Disable the GIL by default in free-threaded builds #116329

Description

@swtaarrs

Feature or enhancement

Proposal:

Once #116167 is complete, users will be able to disable the GIL with PYTHON_GIL=0, but the GIL will remain enabled by default.

When we have enough confidence in the correctness of running without the GIL, we should change free-threaded builds to disable the GIL by default, as described in PEP 703.

This should be a very small code change, and is already detailed in this comment.

Activity

  1. corona10 commented on Mar 5, 2024

    @corona10
    Member

    From my view, at least we should pass all unit tests with PYTHON_GIL=0

  2. colesbury commented on Apr 26, 2024

    @colesbury
    Contributor

    Done in #118295

  3. colesbury commented on Nov 24, 2025

    @colesbury
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions