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 objectsannotationlibβ Functionality for introspecting annotationssiteβ Site-specific configuration hook
See also
See the
concurrent.interpretersmodule, which similarly exposes core runtime functionality.