February 2006
Intermediate to advanced
648 pages
14h 53m
English
The interpreter has a number of options that control its runtime behavior and environment. Options are given to the interpreter on the command line as follows:
python [options] [-c cmd | filename | - ] [args]
Here’s a list of the available command-line options:
| Option | Description |
|---|---|
| -d | Generates parser debugging information. |
| -E | Ignores environment variables. |
| -h | Prints a list of all available command-line options. |
| -i | Enters interactive mode after program execution. |
| -m module | Runs library module module as a script. |
| -O | Optimized mode. |
| -OO | Optimized mode plus removal of documentation strings. |
| -Q arg | Specifies the behavior of the division operator. One of -Qold (the default), -Qnew, -Qwarn, or -Qwarnall. |
| -S | Prevents inclusion of the ... |
Read now
Unlock full access