---
title: "gh-116167: Allow disabling the GIL with `PYTHON_GIL=0` or `-X gil=0` by swtaarrs · Pull Request #116338 · python/cpython"
url: https://daily.dev/posts/gh-116167-allow-disabling-the-gil-with-python-gil-0-or--x-gil-0-by-swtaarrs-pull-request-116-brk5jgbq9
source_url: https://github.com/python/cpython/pull/116338
type: article
source: "Hacker News"
published: 2024-03-11T17:01:26.994Z
updated: 2024-05-09T09:28:05.588Z
tags: ["python", "cpython"]
reading_time: 1
upvotes: 4
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# gh-116167: Allow disabling the GIL with `PYTHON_GIL=0` or `-X gil=0` by swtaarrs · Pull Request #116338 · python/cpython

**[Hacker News](https://daily.dev/sources/hn)** · 1 min read · 4 upvotes · 0 comments

## Summary

This post discusses the option to disable the GIL in Python using the PYTHON_GIL environment variable or the -X gil=0 flag. It mentions follow-up issues related to re-enabling the GIL when loading incompatible extensions and disabling the GIL by default. The impact of disabling the GIL on different programs is also mentioned.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/python/cpython/pull/116338>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#cpython](https://daily.dev/tags/cpython)

[View this post on daily.dev](https://daily.dev/posts/gh-116167-allow-disabling-the-gil-with-python-gil-0-or--x-gil-0-by-swtaarrs-pull-request-116-brk5jgbq9)
