By default
traceback()
prints the call stack of the lastuncaught error, i.e., the sequence of calls that lead to the error.
This is useful when an error occurs with an unidentifiable error
message. It can also be used to print the current stack or
arbitrary lists of deparsed calls.
.traceback()
now returns the above call stack (andtraceback(x, *)
can be regarded as convenience function forprinting the result of
.traceback(x)
).
No comments:
Post a Comment