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)
104 def print_exception(exc, /, value=_sentinel, tb=_sentinel, limit=None, \ argument
119 te = TracebackException(type(value), value, tb, limit=limit, compact=True)
124 def format_exception(exc, /, value=_sentinel, tb=_sentinel, limit=None, \ argument
135 te = TracebackException(type(value), value, tb, limit=limit, compact=True)
177 def print_exc(limit=None, file=None, chain=True): argument
179 print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain)
181 def format_exc(limit=None, chain=True): argument
183 return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
185 def print_last(limit=None, file=None, chain=True): argument
191 limit, file, chain)
197 def print_stack(f=None, limit=None, file=None): argument
206 print_list(extract_stack(f, limit=limit), file=file)
209 def format_stack(f=None, limit=None): argument
213 return format_list(extract_stack(f, limit=limit))
216 def extract_stack(f=None, limit=None): argument
227 stack = StackSummary.extract(walk_stack(f), limit=limit)
339 def extract(klass, frame_gen, *, limit=None, lookup_lines=True, argument
352 if limit is None:
353 limit = getattr(sys, 'tracebacklimit', None)
354 if limit is not None and limit < 0:
355 limit = 0
356 if limit is not None:
357 if limit >= 0:
358 frame_gen = itertools.islice(frame_gen, limit)
360 frame_gen = collections.deque(frame_gen, maxlen=-limit)
489 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None, argument
503 walk_tb(exc_traceback), limit=limit, lookup_lines=lookup_lines,
537 limit=limit,
556 limit=limit,