29. 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:
- 29.1.
sys— System-specific parameters and functions - 29.2.
sysconfig— Provide access to Python’s configuration information - 29.3.
builtins— Built-in objects - 29.4.
__main__— Top-level script environment - 29.5.
warnings— Warning control - 29.6.
contextlib— Utilities forwith-statement contexts - 29.7.
abc— Abstract Base Classes - 29.8.
atexit— Exit handlers - 29.9.
traceback— Print or retrieve a stack traceback - 29.10.
__future__— Future statement definitions - 29.11.
gc— Garbage Collector interface - 29.12.
inspect— Inspect live objects- 29.12.1. Types and members
- 29.12.2. Retrieving source code
- 29.12.3. Introspecting callables with the Signature object
- 29.12.4. Classes and functions
- 29.12.5. The interpreter stack
- 29.12.6. Fetching attributes statically
- 29.12.7. Current State of Generators and Coroutines
- 29.12.8. Code Objects Bit Flags
- 29.12.9. Command Line Interface
- 29.13.
site— Site-specific configuration hook - 29.14.
fpectl— Floating point exception control
