mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765)
This commit is contained in:
parent
61f576a5ef
commit
19ac28bd08
1 changed files with 3 additions and 0 deletions
|
@ -310,15 +310,18 @@ static const char usage_envvars[] =
|
||||||
" interpreter displays tracebacks. (-X no_debug_ranges)\n"
|
" interpreter displays tracebacks. (-X no_debug_ranges)\n"
|
||||||
"PYTHONNOUSERSITE: disable user site directory (-s)\n"
|
"PYTHONNOUSERSITE: disable user site directory (-s)\n"
|
||||||
"PYTHONOPTIMIZE : enable level 1 optimizations (-O)\n"
|
"PYTHONOPTIMIZE : enable level 1 optimizations (-O)\n"
|
||||||
|
"PYTHONPERFSUPPORT: support the Linux \"perf\" profiler (-X perf)\n"
|
||||||
#ifdef Py_DEBUG
|
#ifdef Py_DEBUG
|
||||||
"PYTHON_PRESITE=pkg.mod: import this module before site.py is run (-X presite)\n"
|
"PYTHON_PRESITE=pkg.mod: import this module before site.py is run (-X presite)\n"
|
||||||
#endif
|
#endif
|
||||||
|
"PYTHONPROFILEIMPORTTIME: show how long each import takes (-X importtime)\n"
|
||||||
"PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files\n"
|
"PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files\n"
|
||||||
" (-X pycache_prefix)\n"
|
" (-X pycache_prefix)\n"
|
||||||
"PYTHONSAFEPATH : don't prepend a potentially unsafe path to sys.path.\n"
|
"PYTHONSAFEPATH : don't prepend a potentially unsafe path to sys.path.\n"
|
||||||
#ifdef Py_STATS
|
#ifdef Py_STATS
|
||||||
"PYTHONSTATS : turns on statistics gathering (-X pystats)\n"
|
"PYTHONSTATS : turns on statistics gathering (-X pystats)\n"
|
||||||
#endif
|
#endif
|
||||||
|
"PYTHONTRACEMALLOC: trace Python memory allocations (-X tracemalloc)\n"
|
||||||
"PYTHONUNBUFFERED: disable stdout/stderr buffering (-u)\n"
|
"PYTHONUNBUFFERED: disable stdout/stderr buffering (-u)\n"
|
||||||
"PYTHONUTF8 : if set to 1, enable the UTF-8 mode (-X utf8)\n"
|
"PYTHONUTF8 : if set to 1, enable the UTF-8 mode (-X utf8)\n"
|
||||||
"PYTHONVERBOSE : trace import statements (-v)\n"
|
"PYTHONVERBOSE : trace import statements (-v)\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue