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 / _format_list

function

IPython.core.ultratb:ListTB._format_list

source: /IPython/core/ultratb.py :243

Signature

def   _format_list ( self extracted_list : list[Any] )  →  list[str]

Summary

Format a list of traceback entry tuples for printing.

Extended Summary

Given a list of tuples 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.

Lifted almost verbatim from traceback.py

Aliases

  • IPython.core.ultratb.ListTB._format_list