-b | Issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str. (-bb: issue errors) |
-B | Don't write cached (.pyc ) files on import (compare with PYTHONDONTWRITEBYTECODE=x and sys.dont_write_bytecode ) |
-c cmd | Program passed in as string (terminates option list) |
-d | Debug output from parser; also PYTHONDEBUG=x |
-E | Ignore PYTHON* environment variables (such as for example PYTHONPATH ) |
-h | Prints a help message and exits, same as --help |
-i | Inspect interactively after running script; forces a prompt even if stdin does not appear to be a terminal; also PYTHONINSPECT=x |
-I | Isolate Python from the user's environment (implies -E and -s ) |
-m mod | Run library module as a script. (If library module is a directory, runs __main__.py ). Terminates option list. |
-O | Remove assert and __debug__-dependent statements; add .opt-1 before .pyc extension; also PYTHONOPTIMIZE=x |
-OO | Do -O changes and also discard docstrings; add .opt-2 before .pyc extension |
-P | |
-q | Don't print version and copyright messages on interactive startup |
-s | Don't add user site directory to sys.path . See also PYTHONNOUSERSITE |
-S | Don't imply import site on initialization (see also <install-root>/Lib/site.py ) |
-u | Force the stdout and stderr streams to be unbuffered; this option has no effect on stdin; also PYTHONUNBUFFERED=x |
-v | Verbose (trace import statements. See also PYTHONVERBOSE=x which can be supplied multiple times to increase verbosity |
-V | Print the Python version number and exit. Same as --version . Prints more information about the build if given twice. |
-W arg | Warning control; arg is action:message:category:module:lineno. Compare with PYTHONWARNINGS=arg |
-x | Skip first line of source, allowing use of non-Unix forms of #!cmd |
-X opt | Set implementation-specific option. See below for possible values of opt . |