A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/061904.html below:

[Python-Dev] with-statement heads-up

[Python-Dev] with-statement heads-up [Python-Dev] with-statement heads-upMike Bland mbland at acm.org
Tue Feb 28 18:52:04 CET 2006
On 2/28/06, Guido van Rossum <guido at python.org> wrote:
> I just realized that there's a bug in the with-statement as currently
> checked in. __exit__ is supposed to re-raise the exception if there
> was one; if it returns normally, the finally clause is NOT to re-raise
> it. The fix is relatively simple (I believe) but requires updating
> lots of unit tests. It'll be a while.

Hmm.  My understanding was that __exit__ was *not* to reraise it, but
was simply given the opportunity to record the exception-in-progress.

Mike
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4