PyDocs

Nav

Python Runtime Services

exc_info

sys

function
  • exc_info()
Return current exception information: (type, value, traceback).

Return information about the most recent exception caught by an except
clause in the current stack frame or in an older stack frame.
Changed in 3.11
  • 3.11: The type and traceback fields are now derived from the value (the exception instance), so when an exception is modified while it is being handled, the changes are reflected in the results of subsequent calls to exc_info().
0 Examples
No examples for sys/exc_info.
See Also
No see-alsos for sys/exc_info
0 Notes
No notes for exc_info