diff options
author | Éric <merwok@netwok.org> | 2022-05-26 14:31:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 14:31:39 (GMT) |
commit | da397194832c4b8db8446af42919d8ad47b3cb4a (patch) | |
tree | 607d26cdad610d09cfc3f86a469b68c97695eca6 /Misc | |
parent | 06dd26f89f35b6d6ef4b68c169cb6c675af7e4a4 (diff) | |
download | cpython-da397194832c4b8db8446af42919d8ad47b3cb4a.zip cpython-da397194832c4b8db8446af42919d8ad47b3cb4a.tar.gz cpython-da397194832c4b8db8446af42919d8ad47b3cb4a.tar.bz2 |
gh-93217: fix some issues in man page and --help (#93219)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/python.man | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Misc/python.man b/Misc/python.man index 69dab58..c6628fe 100644 --- a/Misc/python.man +++ b/Misc/python.man @@ -69,10 +69,10 @@ python \- an interpreted, interactive, object-oriented programming language .B \-x ] [ -[ .B \-X .I option ] +[ .B \-? ] .br @@ -310,7 +310,8 @@ Set implementation specific option. The following options are available: more verbose than the default if the code is correct: new warnings are only emitted when an issue is detected. Effect of the developer mode: * Add default warning filter, as -W default - * Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function + * Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() + C function * Enable the faulthandler module to dump the Python traceback on a crash * Enable asyncio debug mode * Set the dev_mode attribute of sys.flags to True @@ -321,7 +322,19 @@ Set implementation specific option. The following options are available: otherwise activate automatically). See PYTHONUTF8 for more details -X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the - given directory instead of to the code tree. + given directory instead of to the code tree. + + -X warn_default_encoding: enable opt-in EncodingWarning for 'encoding=None' + + -X no_debug_ranges: disable the inclusion of the tables mapping extra location + information (end line, start column offset and end column offset) to every + instruction in code objects. This is useful when smaller code objects and pyc + files are desired as well as suppressing the extra visual location indicators + when the interpreter displays tracebacks. + + -X frozen_modules=[on|off]: whether or not frozen modules should be used + The default is "on" (or "off" if you are running a local build). + .TP .B \-x Skip the first line of the source. This is intended for a DOS |