[Python-Dev] Chained Exceptions
Ka-Ping Yee
python-dev at zesty.ca
Fri May 13 02:36:15 CEST 2005
On Thu, 12 May 2005, Brett C. wrote:
> Guido van Rossum wrote:
> > Try to come up with a precise specification and we'll talk.
>
> If a new exception is raised (e.g., not a bare 'raise') while a current
> exception is active (e.g., sys.exc_info() would return something other
> than a tuple of None), then the new exception is made the active exception
> and the now old exception is assigned to the new exception's context
> attribute to be the old exception.
Yeah, i think that's basically all there is to it. I'll go have a peek
at the interpreter to see if i'm forgetting something.
-- ?!ng
More information about the Python-Dev
mailing list