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.0 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 manner to make use of a number of variations of Python typically is pyenv
. A 3.13t
or 3.13t-dev
possibility for pyenv
allows you to set up and choose that construct. (Ubuntu customers may work with the deadsnakes
PPA to acquire these builds.)
If you use the free-threaded construct, the GIL is included within the binary however disabled by default. If for some cause you need to re-enable the GIL within the free-threaded model, you need to use the command-line possibility -X gil=1
, or set the atmosphere variable PYTHON_GIL
to 1
.