Command lines are used to launch Python programs from a system shell prompt. Command-line options intended for Python itself appear before the specification of the program code to be run. Options intended for the code to be run appear after the program specification. Command lines have the following format:
module| - ] [
Issues warnings for calling
bytearrayobject, and comparing a
-bbissues errors instead.
Do not write .pyc or .pyo byte-code files on imports.
Turns on parser debugging output (for developers of the Python core).
Ignores Python environment variables described ahead (such as
Prints help message and exit.
Enters interactive mode after executing a script. Useful for postmortem debugging.
Optimizes generated byte-code (create and use .pyo byte-code files). Currently yields a minor performance improvement.
-O, the previous option, but also removes docstrings from byte-code.
Do not add the user site directory to the
sys.pathmodule search path.
Do not imply “import site” on initialization.
Forces stdout and stderr to be unbuffered and binary.
Prints a message each time a module is initialized, showing the place from which it is loaded; repeats this flag for more verbose output.
Prints Python version number and exit.
Functions as warning control;
argtakes the form