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 functionssysconfig — Provide access to Python’s configuration information
builtins — Built-in objects__main__ — Top-level script environmentwarnings — Warning control
contextlib — Utilities for with-statement contexts__enter__ methods__enter__ implementationtry-finally and flag variablesabc — Abstract Base Classesatexit — Exit handlers
traceback — Print or retrieve a stack traceback
__future__ — Future statement definitionsgc — Garbage Collector interfaceinspect — Inspect live objectssite — Site-specific configuration hook
fpectl — Floating point exception control