Home | History | Annotate | Download | only in python2.7

Lines Matching refs:tb

46 def print_tb(tb, limit=None, file=None):
47 """Print up to 'limit' stack trace entries from the traceback 'tb'.
60 while tb is not None and (limit is None or n < limit):
61 f = tb.tb_frame
62 lineno = tb.tb_lineno
71 tb = tb.tb_next
74 def format_tb(tb, limit = None):
76 return format_list(extract_tb(tb, limit))
78 def extract_tb(tb, limit = None):
94 while tb is not None and (limit is None or n < limit):
95 f = tb.tb_frame
96 lineno = tb.tb_lineno
105 tb = tb.tb_next
110 def print_exception(etype, value, tb, limit=None, file=None):
111 """Print exception up to 'limit' stack trace entries from 'tb' to 'file'.
123 if tb:
125 print_tb(tb, limit, file)
130 def format_exception(etype, value, tb, limit = None):
139 if tb:
141 list = list + format_tb(tb, limit)
231 etype, value, tb = sys.exc_info()
232 print_exception(etype, value, tb, limit, file)
234 etype = value = tb = None
240 etype, value, tb = sys.exc_info()
241 return ''.join(format_exception(etype, value, tb, limit))
243 etype = value = tb = None
314 def tb_lineno(tb):
315 """Calculate correct line number of traceback given in tb.
319 return tb.tb_lineno