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
--- 系統特定的參數與函式sysconfig
--- Provide access to Python's configuration informationbuiltins
--- 內建物件__main__
--- Top-level code environmentwarnings
--- Warning controldataclasses
--- Data Classescontextlib
--- Utilities forwith
-statement contextsabc
--- 抽象基底類別atexit
--- Exit handlerstraceback
--- Print or retrieve a stack traceback__future__
--- Future statement definitionsgc
--- 垃圾回收器介面 (Garbage Collector interface)inspect
--- Inspect live objectssite
--- Site-specific configuration hook