July 2009
Intermediate to advanced
744 pages
20h 2m
English
This chapter describes the environment in which Python programs are executed. The goal is to describe the runtime behavior of the interpreter, including program startup, configuration, and program termination.
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 most common command-line options:
Table 10.1 Interpreter Command-Line Arguments

The -i option starts an interactive session immediately after a program ...
Read now
Unlock full access