MCPcopy Index your code
hub / github.com/RustPython/RustPython / print_list

Function print_list

Lib/traceback.py:29–35  ·  view source on GitHub ↗

Print the list of tuples as returned by extract_tb() or extract_stack() as a formatted stack trace to the given file.

(extracted_list, file=None)

Source from the content-addressed store, hash-verified

27
28
29def print_list(extracted_list, file=None):
30 """Print the list of tuples as returned by extract_tb() or
31 extract_stack() as a formatted stack trace to the given file."""
32 if file is None:
33 file = sys.stderr
34 for item in StackSummary.from_list(extracted_list).format():
35 print(item, file=file, end="")
36
37def format_list(extracted_list):
38 """Format a list of tuples or FrameSummary objects for printing.

Callers 2

print_tbFunction · 0.85
print_stackFunction · 0.85

Calls 3

from_listMethod · 0.80
printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected