Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 19ac28b

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎Python/initconfig.c

Copy file name to clipboardExpand all lines: Python/initconfig.c
+3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.