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:
sys— System-specific parameters and functions-
sys.monitoring— Execution event monitoring -
sysconfig— Provide access to Python’s configuration information builtins— Built-in objects-
__main__— Top-level code environment -
warnings— Warning control -
dataclasses— Data Classes -
contextlib— Utilities forwith-statement contexts abc— Abstract Base Classes-
atexit— Exit handlers -
traceback— Print or retrieve a stack traceback -
__future__— Future statement definitions gc— Garbage Collector interface-
inspect— Inspect live objects -
annotationlib— Functionality for introspecting annotations -
site— Site-specific configuration hook
See also
- See the
concurrent.interpretersmodule, which similarly exposes core runtime functionality.
© 2001 Python Software Foundation
Licensed under the PSF License.
https://docs.python.org/3.14/library/python.html