27. Python Runtime Services
The modules described in this chapter provide a wide range of services related to the Python interpreter and its interaction with its environment. Here’s an overview:
- 27.1. sys — System-specific parameters and functions
- 27.2. sysconfig — Provide access to Python’s configuration information
- 27.3. builtins — Built-in objects
- 27.4. __main__ — Top-level script environment
- 27.5. warnings — Warning control
- 27.6. contextlib — Utilities for with-statement contexts
- 27.7. abc — Abstract Base Classes
- 27.8. atexit — Exit handlers
- 27.9. traceback — Print or retrieve a stack traceback
- 27.10. __future__ — Future statement definitions
- 27.11. gc — Garbage Collector interface
- 27.12. inspect — Inspect live objects
- 27.13. site — Site-specific configuration hook
- 27.14. fpectl — Floating point exception control
- 27.15. distutils — Building and installing Python modules