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:
- 1.
sys
— System-specific parameters and functions - 2.
sysconfig
— Provide access to Python’s configuration information - 3.
__builtin__
— Built-in objects - 4.
future_builtins
— Python 3 builtins - 5.
__main__
— Top-level script environment - 6.
warnings
— Warning control - 7.
contextlib
— Utilities forwith
-statement contexts - 8.
abc
— Abstract Base Classes - 9.
atexit
— Exit handlers - 10.
traceback
— Print or retrieve a stack traceback - 11.
__future__
— Future statement definitions - 12.
gc
— Garbage Collector interface - 13.
inspect
— Inspect live objects - 14.
site
— Site-specific configuration hook - 15.
user
— User-specific configuration hook - 16.
fpectl
— Floating point exception control