]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117041: Add "-X gil" in the Python CLI help (GH-117042)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 19 Mar 2024 21:30:25 +0000 (23:30 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 21:30:25 +0000 (23:30 +0200)
Python/initconfig.c

index 95234eed5edff153b1d1206ae54760888d712894..215d6a1d4e0dbaae2fe750466f20a5d380e3829f 100644 (file)
@@ -195,6 +195,11 @@ The following implementation-specific options are available:\n\
 -X frozen_modules=[on|off]: whether to use frozen modules; the default is \"on\"\n\
          for installed Python and \"off\" for a local build;\n\
          also PYTHON_FROZEN_MODULES\n\
+"
+#ifdef Py_GIL_DISABLED
+"-X gil=[0|1]: enable (1) or disable (0) the GIL; also PYTHON_GIL\n"
+#endif
+"\
 -X importtime: show how long each import takes; also PYTHONPROFILEIMPORTTIME\n\
 -X int_max_str_digits=N: limit the size of int<->str conversions;\n\
          0 disables the limit; also PYTHONINTMAXSTRDIGITS\n\