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

Function format_tb

Lib/traceback.py:65–67  ·  view source on GitHub ↗

A shorthand for 'format_list(extract_tb(tb, limit))'.

(tb, limit=None)

Source from the content-addressed store, hash-verified

63 print_list(extract_tb(tb, limit=limit), file=file)
64
65def format_tb(tb, limit=None):
66 """A shorthand for 'format_list(extract_tb(tb, limit))'."""
67 return extract_tb(tb, limit=limit).format()
68
69def extract_tb(tb, limit=None):
70 """

Callers

nothing calls this directly

Calls 2

extract_tbFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected