[Python-ideas] "try with" syntactic sugar

Curt Hagenlocher curt at hagenlocher.org
Fri Feb 27 13:49:58 CET 2009


On Fri, Feb 27, 2009 at 2:49 AM, Arnaud Delobelle
<arnodel at googlemail.com> wrote:
>
> Every compound statement could be made into an implicit try, i.e.

That way lies madness.  What distinguishes "with" from other compound
statements is that it's already about resource management in the face
of possible exceptions.

--
Curt Hagenlocher
curt at hagenlocher.org



More information about the Python-ideas mailing list