← 输入框|github.com|刷新
Skip to content

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

Closed as duplicate
Closed as duplicate

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. added
    type-feature
    interpreter-core
    on Mar 4, 2024
  2. corona10 commented on Mar 5, 2024

    @corona10
    Member

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

  3. colesbury commented on Apr 26, 2024

    @colesbury
    Contributor

    Done in #118295

  4. 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

Labels

interpreter-coretopic-free-threadingtype-feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions