You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / 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

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