File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1147,6 +1147,15 @@ conflict.
1147
1147
1148
1148
.. versionadded :: 3.13
1149
1149
1150
+ .. envvar :: PYTHON_GIL
1151
+
1152
+ If this variable is set to ``1 ``, the global interpreter lock (GIL) will be
1153
+ forced on. Setting it to ``0 `` forces the GIL off.
1154
+
1155
+ Needs Python configured with the :option: `--disable-gil ` build option.
1156
+
1157
+ .. versionadded :: 3.13
1158
+
1150
1159
Debug-mode variables
1151
1160
~~~~~~~~~~~~~~~~~~~~
1152
1161
Original file line number Diff line number Diff line change @@ -607,6 +607,10 @@ output. Setting it to 0 deactivates this behavior.
607
607
.IP PYTHON_HISTORY
608
608
This environment variable can be used to set the location of a history file
609
609
(on Unix, it is \fI ~/.python_history \fP by default).
610
+ .IP PYTHON_GIL
611
+ If this variable is set to 1, the global interpreter lock (GIL) will be forced
612
+ on. Setting it to 0 forces the GIL off. Only available in builds configured
613
+ with \fB --disable-gil \fP .
610
614
.SS Debug-mode variables
611
615
Setting these variables only has an effect in a debug build of Python, that is,
612
616
if Python was configured with the
You can’t perform that action at this time.
0 commit comments