Skip to content

Commit 682aca2

Browse files
committed
Document the -X gil option in the manpage
1 parent 60290c1 commit 682aca2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Misc/python.man

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ Set implementation-specific option. The following options are available:
367367
-X frozen_modules=[on|off]: whether or not frozen modules should be used.
368368
The default is "on" (or "off" if you are running a local build).
369369

370+
-X gil=[0|1]: enable (1) or disable (0) the GIL; also PYTHON_GIL
371+
Only available in builds configured with --disable-gil.
372+
370373
-X int_max_str_digits=number: limit the size of int<->str conversions.
371374
This helps avoid denial of service attacks when parsing untrusted data.
372375
The default is sys.int_info.default_max_str_digits. 0 disables.
@@ -689,6 +692,8 @@ This environment variable can be used to set the location of a history file
689692
If this variable is set to 1, the global interpreter lock (GIL) will be forced
690693
on. Setting it to 0 forces the GIL off. Only available in builds configured
691694
with \fB--disable-gil\fP.
695+
.IP
696+
This is equivalent to the \fB-X gil\fR option.
692697
.SS Debug-mode variables
693698
Setting these variables only has an effect in a debug build of Python, that is,
694699
if Python was configured with the

0 commit comments

Comments
 (0)