A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-February/032913.html below:

[Python-Dev] exec/with thunk-handling proposal

[Python-Dev] exec/with thunk-handling proposal [Python-Dev] exec/with thunk-handling proposalMoore, Paul Paul.Moore@atosorigin.com
Tue, 4 Feb 2003 14:29:17 -0000
From: Jeff Epler [mailto:jepler@unpythonic.net]
> This made me realize something.  What happens if some sort of
> exception is raised between 'f1 =3D open()' and the start of the
> block 'with autoclose(f1):'?
[...]
> Please let me know what simple fact I'm missing.

Nothing much, other than the fact that this is an issue with the
try...except form as well. Basically, this isn't a problem that
the proposal is trying to solve.

I'll add a paragraph to the PEP to note this point, though...

Paul.



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