• Home
  • Raw
  • Download

Lines Matching full:limit

46 def print_tb(tb, limit=None, file=None):  argument
47 """Print up to 'limit' stack trace entries from the traceback 'tb'.
49 If 'limit' is omitted or None, all entries are printed. If 'file'
56 if limit is None:
58 limit = sys.tracebacklimit
60 while tb is not None and (limit is None or n < limit):
74 def format_tb(tb, limit = None): argument
75 """A shorthand for 'format_list(extract_tb(tb, limit))'."""
76 return format_list(extract_tb(tb, limit))
78 def extract_tb(tb, limit = None): argument
79 """Return list of up to limit pre-processed entries from traceback.
82 'limit' is omitted or None, all entries are extracted. A
89 if limit is None:
91 limit = sys.tracebacklimit
94 while tb is not None and (limit is None or n < limit):
110 def print_exception(etype, value, tb, limit=None, file=None): argument
111 """Print exception up to 'limit' stack trace entries from 'tb' to 'file'.
125 print_tb(tb, limit, file)
130 def format_exception(etype, value, tb, limit = None): argument
141 list = list + format_tb(tb, limit)
225 def print_exc(limit=None, file=None): argument
226 """Shorthand for 'print_exception(sys.exc_type, sys.exc_value, sys.exc_traceback, limit, file)'.
233 print_exception(etype, value, tb, limit, file)
238 def format_exc(limit=None): argument
242 return ''.join(format_exception(etype, value, tb, limit))
247 def print_last(limit=None, file=None): argument
249 sys.last_value, sys.last_traceback, limit, file)'."""
255 limit, file)
258 def print_stack(f=None, limit=None, file=None): argument
262 stack frame at which to start. The optional 'limit' and 'file'
270 print_list(extract_stack(f, limit), file)
272 def format_stack(f=None, limit=None): argument
273 """Shorthand for 'format_list(extract_stack(f, limit))'."""
279 return format_list(extract_stack(f, limit))
281 def extract_stack(f=None, limit = None): argument
285 optional 'f' and 'limit' arguments have the same meaning as for
295 if limit is None:
297 limit = sys.tracebacklimit
300 while f is not None and (limit is None or n < limit):