[Python-ideas] Make-statement [Re: Different interface for namedtuple?]

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 8 00:46:37 CET 2011

Jim Jewett wrote:

> I had thought of the finally as the element-close tags...

But generation of the closing tags doesn't really have to
be done in a finally block, unless you're somehow wanting
to support throwing an exception in the middle of your
xml generation and still have it generate well-formed xml.

In the absence of such a requirement, using a with-statement
seems like overkill.


More information about the Python-ideas mailing list