]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Mar 2024 13:41:52 +0000 (14:41 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 13:41:52 +0000 (15:41 +0200)
(cherry picked from commit fc4d5fdffe3d9829b118232f35ccee61a27392ee)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 19ac28bd08fdb16795e6f82ea7bfac73e8f3791b)

Python/initconfig.c

index 989f724e12859dc9dbf325022546224ab7afd831..7997fb75548f35dfd1ee21f7faada41d7c2ac820 100644 (file)
@@ -174,9 +174,11 @@ 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"
+"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"