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 functionssys.monitoring
β Execution event monitoringsysconfig
β Provide access to Pythonβs configuration informationbuiltins
β Built-in objects__main__
β Top-level code environmentwarnings
β Warning controldataclasses
β Data Classescontextlib
β Utilities forwith
-statement contextsabc
β Abstract Base Classesatexit
β Exit handlerstraceback
β Print or retrieve a stack traceback__future__
β Future statement definitionsgc
β Garbage Collector interfaceinspect
β Inspect live objectssite
β Site-specific configuration hook