this post was submitted on 12 Aug 2024
63 points (98.5% liked)

Python

6337 readers
13 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

GIL or Global Interpreter Lock can be disabled in Python version 3.13. This is currently experimental.

Python 3.13 brings major new features compared to Python 3.12 and one of them is free-threaded mode, which disables the Global Interpreter Lock, allowing threads to run more concurrently.

The GIL will be disabled when you configure the Python with the --disable-gil option which is nothing but a build configuration (free threading build) at the time of installation.

This will allow optionally enabling and disabling GIL using the environment variable PYTHON_GIL which can be set to 1 and 0 respectively.

It will also provide a command-line option -X gil which can also be set to 0 (disable) and 1 (enable).

top 6 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 21 points 2 months ago

This is huge news. Great work to the contributors involved in making this happen.

[โ€“] [email protected] 9 points 2 months ago (1 children)

I learned relatedly that there's a page to track free threaded support for (non-pure python) packages (thanks PythonBytes).

Really cool to see this progressing so steadily.

[โ€“] [email protected] 3 points 2 months ago

Wake me up when pyside is on that list. I've been waiting for this day for a decade...

[โ€“] [email protected] 1 points 2 months ago

what kind of a reptile is python that it still have GILs until recently?

[โ€“] [email protected] -3 points 2 months ago (1 children)

This doesnโ€™t really jive with my understanding of semantic versioning/semver but I guess versioning is very challenging and political in the Pythonverse.