8000 gh-117041: Add "-X gil" in the Python CLI help (GH-117042) · python/cpython@2d17309 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d17309

Browse files
gh-117041 8000 : Add "-X gil" in the Python CLI help (GH-117042)
1 parent 332ac46 commit 2d17309

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Python/initconfig.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ The following implementation-specific options are available:\n\
195195
-X frozen_modules=[on|off]: whether to use frozen modules; the default is \"on\"\n\
196196
for installed Python and \"off\" for a local build;\n\
197197
also PYTHON_FROZEN_MODULES\n\
198+
"
199+
#ifdef Py_GIL_DISABLED
200+
"-X gil=[0|1]: enable (1) or disable (0) the GIL; also PYTHON_GIL\n"
201+
#endif
202+
"\
198203
-X importtime: show how long each import takes; also PYTHONPROFILEIMPORTTIME\n\
199204
-X int_max_str_digits=N: limit the size of int<->str conversions;\n\
200205
0 disables the limit; also PYTHONINTMAXSTRDIGITS\n\

0 commit comments

Comments
 (0)
0