8000 Document PYTHON_GIL environment variable · python/cpython@5053661 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5053661

Browse files
committed
Document PYTHON_GIL environment variable
1 parent 9e9d925 commit 5053661

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Doc/using/cmdline.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,15 @@ conflict.
11471147

11481148
.. versionadded:: 3.13
11491149

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+
11501159
Debug-mode variables
11511160
~~~~~~~~~~~~~~~~~~~~
11521161

Misc/python.man

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,10 @@ output. Setting it to 0 deactivates this behavior.
607607
.IP PYTHON_HISTORY
608608
This environment variable can be used to set the location of a history file
609609
(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.
610614
.SS Debug-mode variables
611615
Setting these variables only has an effect in a debug build of Python, that is,
612616
if Python was configured with the

0 commit comments

Comments
 (0)
0