MCPcopy Index your code
hub / github.com/python/cpython / print_list

Function print_list

Lib/traceback.py:38–44  ·  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

36
37
38def print_list(extracted_list, file=None):
39 """Print the list of tuples as returned by extract_tb() or
40 extract_stack() as a formatted stack trace to the given file."""
41 if file is None:
42 file = sys.stderr
43 for item in StackSummary.from_list(extracted_list).format():
44 print(item, file=file, end="")
45
46def format_list(extracted_list):
47 """Format a list of tuples or FrameSummary objects for printing.

Callers 2

print_tbFunction · 0.85
print_stackFunction · 0.85

Calls 2

formatMethod · 0.45
from_listMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…