ID EN
Traceback

format_list

Python 3.11

Given a list of tuples or FrameSummary objects as returned by extract_tb() or extract_stack(), return a list of strings ready for printing. Each string in the resulting list corresponds to the item with the same index in the argument list. Each string ends in a newline; the strings may contain internal newlines as well, for those items whose source text line is not None.

Syntax

PYTHON
traceback.format_list(extracted_list)

See Also

FrameSummary extract_tb() extract_stack()