Skip to content

Commit d83b4c5

Browse files
[3.11] gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765) (GH-116797) (GH-116803)
(cherry picked from commit fc4d5fd) Co-authored-by: Serhiy Storchaka <[email protected]> (cherry picked from commit 19ac28b)
1 parent 0ecdaf0 commit d83b4c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/initconfig.c

+2
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ static const char usage_envvars[] =
174174
" interpreter displays tracebacks. (-X no_debug_ranges)\n"
175175
"PYTHONNOUSERSITE: disable user site directory (-s)\n"
176176
"PYTHONOPTIMIZE : enable level 1 optimizations (-O)\n"
177+
"PYTHONPROFILEIMPORTTIME: show how long each import takes (-X importtime)\n"
177178
"PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files\n"
178179
" (-X pycache_prefix)\n"
179180
"PYTHONSAFEPATH : don't prepend a potentially unsafe path to sys.path.\n"
181+
"PYTHONTRACEMALLOC: trace Python memory allocations (-X tracemalloc)\n"
180182
"PYTHONUNBUFFERED: disable stdout/stderr buffering (-u)\n"
181183
"PYTHONUTF8 : if set to 1, enable the UTF-8 mode (-X utf8)\n"
182184
"PYTHONVERBOSE : trace import statements (-v)\n"

0 commit comments

Comments
 (0)