You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/gvanrossum'closed_at=<Date2006-03-15.07:59:28.000>created_at=<Date2006-03-08.15:50:55.000>labels= ['interpreter-core']
title='New with semantics'updated_at=<Date2006-03-15.07:59:28.000>user='https://github.com/gvanrossum'
Here's a patch that implements the new with statement
semantics: if __exit__ got passed an exception, it is
only swallowed when __exit__ returns *true*. So it is
no longer necessary for __exit__ handlers to re-raise
the exception.
This is a bit rough still -- existing unit tests have
been adjusted, but there should be additional unit
tests for the new functionality. Also the re-raise
code in various __exit__ handlers coded in the previous
patch could be removed (note that re-raising doesn't do
any harm -- it's just not necessary).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: