• Home
  • Raw
  • Download

Lines Matching refs:limit

45 def print_tb(tb, limit=None, file=None):  argument
53 print_list(extract_tb(tb, limit=limit), file=file)
55 def format_tb(tb, limit=None): argument
57 return extract_tb(tb, limit=limit).format()
59 def extract_tb(tb, limit=None): argument
72 return StackSummary.extract(walk_tb(tb), limit=limit)
87 def print_exception(etype, value, tb, limit=None, file=None, chain=True): argument
104 type(value), value, tb, limit=limit).format(chain=chain):
108 def format_exception(etype, value, tb, limit=None, chain=True): argument
121 type(value), value, tb, limit=limit).format(chain=chain))
161 def print_exc(limit=None, file=None, chain=True): argument
163 print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain)
165 def format_exc(limit=None, chain=True): argument
167 return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
169 def print_last(limit=None, file=None, chain=True): argument
175 limit, file, chain)
181 def print_stack(f=None, limit=None, file=None): argument
190 print_list(extract_stack(f, limit=limit), file=file)
193 def format_stack(f=None, limit=None): argument
197 return format_list(extract_stack(f, limit=limit))
200 def extract_stack(f=None, limit=None): argument
211 stack = StackSummary.extract(walk_stack(f), limit=limit)
319 def extract(klass, frame_gen, *, limit=None, lookup_lines=True, argument
332 if limit is None:
333 limit = getattr(sys, 'tracebacklimit', None)
334 if limit is not None and limit < 0:
335 limit = 0
336 if limit is not None:
337 if limit >= 0:
338 frame_gen = itertools.islice(frame_gen, limit)
340 frame_gen = collections.deque(frame_gen, maxlen=-limit)
465 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None, argument
482 limit=limit,
494 limit=limit,
507 walk_tb(exc_traceback), limit=limit, lookup_lines=lookup_lines,