From e5dc7f1992a27ae87daa9e5f5761c35221907bc3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 14 Mar 2024 12:09:19 +0200 Subject: [PATCH] [3.12] gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765) (cherry picked from commit 19ac28bd08fdb16795e6f82ea7bfac73e8f3791b) --- Python/initconfig.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/initconfig.c b/Python/initconfig.c index 8eb3bba960ce3f..387dc1fd8e0370 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -179,9 +179,12 @@ static const char usage_envvars[] = " interpreter displays tracebacks. (-X no_debug_ranges)\n" "PYTHONNOUSERSITE: disable user site directory (-s)\n" "PYTHONOPTIMIZE : enable level 1 optimizations (-O)\n" +"PYTHONPERFSUPPORT: support the Linux \"perf\" profiler (-X perf)\n" +"PYTHONPROFILEIMPORTTIME: show how long each import takes (-X importtime)\n" "PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files\n" " (-X pycache_prefix)\n" "PYTHONSAFEPATH : don't prepend a potentially unsafe path to sys.path.\n" +"PYTHONTRACEMALLOC: trace Python memory allocations (-X tracemalloc)\n" "PYTHONUNBUFFERED: disable stdout/stderr buffering (-u)\n" "PYTHONUTF8 : if set to 1, enable the UTF-8 mode (-X utf8)\n" "PYTHONVERBOSE : trace import statements (-v)\n"