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

gh-90300: Improve the Python CLI help output #115853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tips about supported values.
  • Loading branch information
serhiy-storchaka committed Mar 15, 2024
commit a5116b574f9b0ec4b54d66967d8fc34bb73c2c59
10 changes: 5 additions & 5 deletions 10 Python/initconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Options (and corresponding environment variables):\n\
-P : don't prepend a potentially unsafe path to sys.path; also\n\
PYTHONSAFEPATH\n\
-q : don't print version and copyright messages on interactive startup\n\
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE=x\n\
-S : don't imply 'import site' on initialization\n\
-u : force the stdout and stderr streams to be unbuffered;\n\
this option has no effect on stdin; also PYTHONUNBUFFERED=x\n\
Expand Down Expand Up @@ -200,7 +200,7 @@ The following implementation-specific options are available:\n\
0 disables the limit; also PYTHONINTMAXSTRDIGITS\n\
-X no_debug_ranges: don't include extra location information in code objects;\n\
also PYTHONNODEBUGRANGES\n\
-X perf: support the Linux \"perf\" profiler; also PYTHONPERFSUPPORT.\n\
-X perf: support the Linux \"perf\" profiler; also PYTHONPERFSUPPORT=1\n\
"
#ifdef Py_DEBUG
"-X presite=MOD: import this module before site is imported; also PYTHON_PRESITE\n"
serhiy-storchaka marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -216,9 +216,9 @@ The following implementation-specific options are available:\n\
-X showrefcount: output the total reference count and number of used\n\
memory blocks when the program finishes or after each statement in\n\
the interactive interpreter; only works on debug builds\n\
-X tracemalloc: trace Python memory allocations; -X tracemalloc=N sets a\n\
traceback limit of N frames (1 by default); also PYTHONTRACEMALLOC=N\n\
-X utf8: enable UTF-8 mode; -X utf8=0 disables UTF-8 mode; also PYTHONUTF8=x\n\
-X tracemalloc[=N]: trace Python memory allocations; N sets a traceback limit\n\
of N frames (1 by default); also PYTHONTRACEMALLOC=N\n\
serhiy-storchaka marked this conversation as resolved.
Show resolved Hide resolved
-X utf8[=0|1]: enable (1) or disable (0) UTF-8 mode; also PYTHONUTF8\n\
-X warn_default_encoding: enable opt-in EncodingWarning for 'encoding=None';\n\
also PYTHONWARNDEFAULTENCODING\
";
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.