Python 3.13.0 (tags/v3.13.0:60403a5, Oct 7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)] on win32
Run py -3.13t
, and also you’ll launch the free-threaded construct:
Python 3.13.Zero experimental free-threading construct (tags/v3.13.0:60403a5, Oct 7 2024, 09:53:29) [MSC v.1941 64 bit (AMD64)] on win32
On Linux, essentially the most handy method to make use of a number of variations of Python typically is pyenv
. A 3.13t
or 3.13t-dev
choice for pyenv
allows you to set up and choose that construct. (Ubuntu customers also can work with the deadsnakes
PPA to acquire these builds.)
When you employ the free-threaded construct, the GIL is included within the binary however disabled by default. If for some cause you wish to re-enable the GIL within the free-threaded model, you need to use the command-line choice -X gil=1
, or set the setting variable PYTHON_GIL
to 1
.