8000 gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765) · python/cpython@19ac28b · GitHub
[go: up one dir, main page]

Skip to content

Commit 19ac28b

Browse files
gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765)
1 parent 61f576a commit 19ac28b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/initconfig.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,15 +310,18 @@ static const char usage_envvars[] =
310310
" interpreter displays tracebacks. (-X no_debug_ranges)\n"
311311
"PYTHONNOUSERSITE: disable user site directory (-s)\n"
312312
"PYTHONOPTIMIZE : enable level 1 optimizations (-O)\n"
313+
"PYTHONPERFSUPPORT: support the Linux \"perf\" profiler (-X perf)\n"
313314
#ifdef Py_DEBUG
314315
"PYTHON_PRESITE=pkg.mod: import this module before site.py is run (-X presite)\n"
315316
#endif
317+
"PYTHONPROFILEIMPORTTIME: show how long each import takes (-X importtime)\n"
316318
"PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files\n"
317319
" (-X pycache_prefix)\n"
318320
"PYTHONSAFEPATH : don't prepend a potentially unsafe path to sys.path.\n"
319321
#ifdef Py_STATS
320322
"PYTHONSTATS : turns on statistics gathering (-X pystats)\n"
321323
#endif
324+
"PYTHONTRACEMALLOC: trace Python memory allocations (-X tracemalloc)\n"
322325
"PYTHONUNBUFFERED: disable stdout/stderr buffering (-u)\n"
323326
"PYTHONUTF8 : if set to 1, enable the UTF-8 mode (-X utf8)\n"
324327
"PYTHONVERBOSE : trace import statements (-v)\n"

0 commit comments

Comments
 (0)
0