Editing Python3 --help
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | + | python3 --help | |
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... | usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... | ||
Options and arguments (and corresponding environment variables): | Options and arguments (and corresponding environment variables): | ||
Line 7: | Line 7: | ||
and comparing bytes/bytearray with str. (-bb: issue errors) | and comparing bytes/bytearray with str. (-bb: issue errors) | ||
-B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x | -B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x | ||
− | + | -c cmd : program passed in as string (terminates option list) | |
-d : debug output from parser; also PYTHONDEBUG=x | -d : debug output from parser; also PYTHONDEBUG=x | ||
− | -E : ignore PYTHON* environment variables (such as | + | -E : ignore PYTHON* environment variables (such as PYTHONPATH) |
-h : print this help message and exit (also --help) | -h : print this help message and exit (also --help) | ||
-i : inspect interactively after running script; forces a prompt even | -i : inspect interactively after running script; forces a prompt even | ||
if stdin does not appear to be a terminal; also PYTHONINSPECT=x | if stdin does not appear to be a terminal; also PYTHONINSPECT=x | ||
-I : isolate Python from the user's environment (implies -E and -s) | -I : isolate Python from the user's environment (implies -E and -s) | ||
− | + | -m mod : run library module as a script (terminates option list) | |
-O : remove assert and __debug__-dependent statements; add .opt-1 before | -O : remove assert and __debug__-dependent statements; add .opt-1 before | ||
.pyc extension; also PYTHONOPTIMIZE=x | .pyc extension; also PYTHONOPTIMIZE=x | ||
Line 97: | Line 97: | ||
− | + | ||
* {{python}} | * {{python}} | ||
− | |||
− |
Advertising: