PyDocs

Nav

Debugging and profiling

Traceback.format

  • Traceback.format(limit=None, most_recent_first=False)
Format the traceback as a list of lines. Use the linecache module to retrieve lines from the source code. If limit is set, format the limit most recent frames if limit is positive. Otherwise, format the abs(limit) oldest frames. If most_recent_first is True, the order of the formatted frames is reversed, returning the most recent frame first instead of last.
0 Examples
No examples for tracemalloc/Traceback.format.
See Also
No see-alsos for tracemalloc/Traceback.format
0 Notes
No notes for Traceback.format