MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / print_list

Function print_list

tools/python-3.11.9-amd64/Lib/traceback.py:21–27  ·  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

19#
20
21def print_list(extracted_list, file=None):
22 """Print the list of tuples as returned by extract_tb() or
23 extract_stack() as a formatted stack trace to the given file."""
24 if file is None:
25 file = sys.stderr
26 for item in StackSummary.from_list(extracted_list).format():
27 print(item, file=file, end="")
28
29def format_list(extracted_list):
30 """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