28. 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:
- 28.1.
sys— System-specific parameters and functionsargvbyteorderbuiltin_module_namescall_tracing()copyright_clear_type_cache()_current_frames()dllhandledisplayhook()dont_write_bytecodeexcepthook()__displayhook____excepthook__exc_info()exc_clear()exc_typeexc_valueexc_tracebackexec_prefixexecutableexit()exitfuncflagsfloat_infofloat_repr_stylegetcheckinterval()getdefaultencoding()getdlopenflags()getfilesystemencoding()getrefcount()getrecursionlimit()getsizeof()_getframe()getprofile()gettrace()getwindowsversion()hexversionlong_infolast_typelast_valuelast_tracebackmaxintmaxsizemaxunicodemeta_pathmodulespathpath_hookspath_importer_cacheplatformprefixps1ps2py3kwarningsetcheckinterval()setdefaultencoding()setdlopenflags()setprofile()setrecursionlimit()settrace()settscdump()stdinstdoutstderr__stdin____stdout____stderr__subversiontracebacklimitversionapi_versionversion_infowarnoptionswinver
- 28.2.
sysconfig— Provide access to Python’s configuration information - 28.3.
__builtin__— Built-in objects - 28.4.
future_builtins— Python 3 builtins - 28.5.
__main__— Top-level script environment - 28.6.
warnings— Warning control - 28.7.
contextlib— Utilities forwith-statement contexts - 28.8.
abc— Abstract Base Classes - 28.9.
atexit— Exit handlers - 28.10.
traceback— Print or retrieve a stack traceback - 28.11.
__future__— Future statement definitions - 28.12.
gc— Garbage Collector interface - 28.13.
inspect— Inspect live objects - 28.14.
site— Site-specific configuration hook - 28.15.
user— User-specific configuration hook - 28.16.
fpectl— Floating point exception control
