Skip to content

Commit fc4d5fd

Browse files
[3.12] gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765) (GH-116797)
(cherry picked from commit 19ac28b)
1 parent c4a22ad commit fc4d5fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/initconfig.c

+3
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,12 @@ static const char usage_envvars[] =
179179
" interpreter displays tracebacks. (-X no_debug_ranges)\n"
180180
"PYTHONNOUSERSITE: disable user site directory (-s)\n"
181181
"PYTHONOPTIMIZE : enable level 1 optimizations (-O)\n"
182+
"PYTHONPERFSUPPORT: support the Linux \"perf\" profiler (-X perf)\n"
183+
"PYTHONPROFILEIMPORTTIME: show how long each import takes (-X importtime)\n"
182184
"PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files\n"
183185
" (-X pycache_prefix)\n"
184186
"PYTHONSAFEPATH : don't prepend a potentially unsafe path to sys.path.\n"
187+
"PYTHONTRACEMALLOC: trace Python memory allocations (-X tracemalloc)\n"
185188
"PYTHONUNBUFFERED: disable stdout/stderr buffering (-u)\n"
186189
"PYTHONUTF8 : if set to 1, enable the UTF-8 mode (-X utf8)\n"
187190
"PYTHONVERBOSE : trace import statements (-v)\n"

0 commit comments

Comments
 (0)