[Python-3000] sys.exc_info()
Tim Delaney
timothy.c.delaney at gmail.com
Sun Jun 1 00:42:19 CEST 2008
Antoine Pitrou <solipsis at pitrou.net> wrote:
> sys.exc_info() will remain, it's just that the returned value will be
> (None, None, None) if we are not in an except block in any of the
> currently active frames in the thread. In the case above it would
> return the current exception (the one caught in one of the enclosing
> frames).
This reminds me of something I've thought a few times - maybe the tuple
returned from sys.exc_info() should be a named tuple.
Tim Delaney
More information about the Python-3000
mailing list