Table 14.9. Execution Environment Related Modules
Module | Description |
---|
atexit | 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 | Attributes of the underlying platform and architecture |
subprocess | Subprocess management (intended to replace old functions and modules such as os.system(), os.spawn*(), os.popen*(), popen2.*, commands.*) |
No comments:
Post a Comment