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

Function format_tb

Lib/traceback.py:74–76  ·  view source on GitHub ↗

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

(tb, limit=None)

Source from the content-addressed store, hash-verified

72 print_list(extract_tb(tb, limit=limit), file=file)
73
74def format_tb(tb, limit=None):
75 """A shorthand for 'format_list(extract_tb(tb, limit))'."""
76 return extract_tb(tb, limit=limit).format()
77
78def extract_tb(tb, limit=None):
79 """

Callers

nothing calls this directly

Calls 2

extract_tbFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…