traceback.extract_tb()

traceback.extract_tb(tb, limit=None)

Return a list of “pre-processed” stack trace entries extracted from the traceback object tb. It is useful for alternate formatting of stack traces. The optional limit argument has the same meaning as for print_tb(). A “pre-processed” stack trace entry is a 4-tuple (filename, line number, function name, text) representing the information that is usually printed for a stack trace. The text is a string with leading and trailing whitespace stripped; if the source is not available it is None.

doc_python
2016-10-07 17:45:09
Comments
Leave a Comment

Please login to continue.