diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-03-19 21:30:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 21:30:25 (GMT) |
commit | 2d17309cc719c41e02ffd1d6cac10f95a7e2359c (patch) | |
tree | 4a091f145b67e5c22e9c9eb46abc1324cd276cbb /Python/initconfig.c | |
parent | 332ac46c09cd500a16a5f03b53f038b1d9ce77ef (diff) | |
download | cpython-2d17309cc719c41e02ffd1d6cac10f95a7e2359c.zip cpython-2d17309cc719c41e02ffd1d6cac10f95a7e2359c.tar.gz cpython-2d17309cc719c41e02ffd1d6cac10f95a7e2359c.tar.bz2 |
gh-117041: Add "-X gil" in the Python CLI help (GH-117042)
Diffstat (limited to 'Python/initconfig.c')
-rw-r--r-- | Python/initconfig.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c index 95234ee..215d6a1 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -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\ |