Lines Matching refs:tb
43 def print_tb(tb, limit=None, file=None):
44 """Print up to 'limit' stack trace entries from the traceback 'tb'.
51 print_list(extract_tb(tb, limit=limit), file=file)
53 def format_tb(tb, limit=None):
54 """A shorthand for 'format_list(extract_tb(tb, limit))'."""
55 return extract_tb(tb, limit=limit).format()
57 def extract_tb(tb, limit=None):
68 return StackSummary.extract(walk_tb(tb), limit=limit)
83 def print_exception(etype, value, tb, limit=None, file=None, chain=True):
84 """Print exception up to 'limit' stack trace entries from 'tb' to 'file'.
100 type(value), value, tb, limit=limit).format(chain=chain):
104 def format_exception(etype, value, tb, limit=None, chain=True):
117 type(value), value, tb, limit=limit).format(chain=chain))
212 def clear_frames(tb):
214 while tb is not None:
216 tb.tb_frame.clear()
220 tb = tb.tb_next
299 def walk_tb(tb):
302 This will follow tb.tb_next (and thus is in the opposite order to
305 while tb is not None:
306 yield tb.tb_frame, tb.tb_lineno
307 tb = tb.tb_next