Table of Contents
sys
sysconfig
__builtin__
future_builtins
__main__
warnings
contextlib
abc
atexit
traceback
traceback.extract_stack()
traceback.extract_tb()
traceback.format_exc()
traceback.format_exception()
traceback.format_exception_only()
traceback.format_list()
traceback.format_stack()
traceback.format_tb()
traceback.print_exc()
traceback.print_exception()
traceback.print_last()
traceback.print_list()
traceback.print_stack()
traceback.print_tb()
traceback.tb_lineno()
__future__
gc
inspect
site
user
traceback.
print_exc
Shorthand for ‘print_exception(sys.exc_type, sys.exc_value, sys.exc_traceback, limit, file)’. (In fact, it uses sys.exc_info() to retrieve the same information in a thread-safe way.)