PyDocs

Nav

Python Runtime Services

print_tb

traceback

function (source)
  • print_tb(tb, limit=None, file=None)
Print up to 'limit' stack trace entries from the traceback 'tb'.

If 'limit' is omitted or None, all entries are printed.  If 'file'
is omitted or None, the output goes to sys.stderr; otherwise
'file' should be an open file or file-like object with a write()
method.
Changed in 3.5
  • 3.5: Added negative limit support.
0 Examples
No examples for traceback/print_tb.
See Also
No see-alsos for traceback/print_tb
0 Notes
No notes for print_tb