GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Disable the GIL by default in free-threaded builds · Issue #116329 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
Disable the GIL by default in free-threaded builds#116329
Copy link
Assignees
colesbury
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement

Description

@swtaarrs
swtaarrs
opened on Mar 4, 2024
Issue body actions

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.

Reacted by Erlend E. Aasland, Donghee Na and Juhan Oskar Hennoste

Activity

  1. swtaarrs
    added
    type-featureA feature request or enhancementA feature request or enhancement
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    topic-free-threading
    on Mar 4, 2024
  2. corona10 commented on Mar 5, 2024

    @corona10
    corona10
    on Mar 5, 2024
    Member
    More actions

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

    Reacted by Brett Simmers, Ferdinand Bachmann and cloudyd3
  3. swtaarrs
    assigned
    colesbury
    on Apr 26, 2024
  4. colesbury commented on Apr 26, 2024

    @colesbury
    colesbury
    on Apr 26, 2024
    Contributor
    More actions

    Done in #118295

    Reacted by Itamar Oren and Danijar Hafner
    Reacted by Danijar Hafner
  5. colesbury
    closed this as completedon Apr 26, 2024
  6. colesbury commented on Nov 24, 2025

    @colesbury
    colesbury
    on Nov 24, 2025
    Contributor
    More actions

    Combining with:

    • Disable GIL by default in free-threaded build #116749
  7. colesbury
    closed this as a duplicateof Disable GIL by default in free-threaded build #116749 on Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @colesbury
    colesbury

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.