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. Heres an overview:
sysSystem-specific parameters and functionssys.monitoringExecution event monitoringsysconfigProvide access to Pythons configuration informationbuiltinsBuilt-in objects__main__Top-level code environmentwarningsWarning controldataclassesData ClassescontextlibUtilities forwith-statement contextsabcAbstract Base ClassesatexitExit handlerstracebackPrint or retrieve a stack traceback__future__Future statement definitionsgcGarbage Collector interfaceinspectInspect live objectsannotationlibFunctionality for introspecting annotationssiteSite-specific configuration hook
See also
See the
concurrent.interpretersmodule, which similarly exposes core runtime functionality.