PyDocs

Nav

Python Runtime Services

_current_exceptions

sys

function
  • _current_exceptions()
Return a dict mapping each thread's identifier to its current raised exception.

This function should be used for specialized purposes only.
Changed in 3.12
  • 3.12: Each value in the dictionary is now a single exception instance, rather than a 3-tuple as returned from sys.exc_info().
0 Examples
No examples for sys/_current_exceptions.
See Also
No see-alsos for sys/_current_exceptions
0 Notes
No notes for _current_exceptions