bundles / IPython latest / IPython / core / ultratb / ListTB
class
IPython.core.ultratb:ListTB
source: /IPython/core/ultratb.py :116
Signature
class ListTB ( color_scheme : Any = <object object at 0x0000> , call_pdb : bool = False , ostream : Any = None , * , debugger_cls : type | None = None , theme_name : str = nocolor ) Members
-
__call__ -
_extract_tb -
_format_exception_only -
_format_list -
_some_str -
get_exception_only -
show_exception_only -
structured_traceback
Summary
Print traceback information from a traceback list, with optional color.
Extended Summary
Calling requires 3 arguments: (etype, evalue, elist) as would be obtained by
etype, evalue, tb = sys.exc_info() if tb: elist = traceback.extract_tb(tb) else: elist = None
It can thus be used by programs which need to process the traceback before printing (such as console replacements based on the code module from the standard library).
Because they are meant to be called without a full traceback (only a list), instances of this class can't call the interactive pdb debugger.
Aliases
-
IPython.core.ultratb.ListTB