In Table 14.9 you will find a list of modules other than os and sys that relate to the execution environment theme of this chapter.
Table 14.9. Execution Environment Related Modules
Module
Description
atexit[a]
Registers handlers to execute when Python interpreter exits
popen2
Provides additional functionality on top of os.popen(): provides ability to communicate via standard files to the other process; use subprocess for Python 2.4 and newer)
commands
Provides additional functionality on top of os.system(): saves all program output in a string which is returned (as opposed to just dumping output to the screen); use subprocess for Python 2.4 and newer)
getopt
Processes options and command-line arguments in such applications
site
Processes site-specific modules or packages
platform[b]
Attributes of the underlying platform and architecture
subprocess[c]
Subprocess management (intended to replace old functions and modules such as os.system(), os.spawn*(), os.popen*(), popen2.*, commands.*)