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.