26. 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:
- 26.1. sys — System-specific parameters and functions
- 26.2. sysconfig — Provide access to Python’s configuration information
- 26.3. __builtin__ — Built-in objects
- 26.4. future_builtins — Python 3 builtins
- 26.5. __main__ — Top-level script environment
- 26.6. warnings — Warning control
- 26.7. contextlib — Utilities for with-statement contexts
- 26.8. abc — Abstract Base Classes
- 26.9. atexit — Exit handlers
- 26.10. traceback — Print or retrieve a stack traceback
- 26.11. __future__ — Future statement definitions
- 26.12. gc — Garbage Collector interface
- 26.13. inspect — Inspect live objects
- 26.14. site — Site-specific configuration hook
- 26.15. user — User-specific configuration hook
- 26.16. distutils — Building and installing Python modules