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

Bruce Leban bruce at leapyear.org
Mon Mar 7 07:06:21 CET 2011

On Sun, Mar 6, 2011 at 7:11 PM, Guido van Rossum <guido at python.org> wrote:

> On Sat, Mar 5, 2011 at 10:27 PM, Carl M. Johnson
> <cmjohnson.mailinglist at gmail.com> wrote:> With a little searching, you can
> find similar examples of abuse that
> > are centered around the with statement rather than metaclasses. People
> > have made the with statement into an XML generator
> > <
> http://langexplr.blogspot.com/2009/02/writing-xml-with-ironpython-xmlwriter.html
> >
> > or an anonymous block handler
> > <http://code.google.com/p/ouspg/wiki/AnonymousBlocksInPython>.
> TBH I find such abuse of 'with' much more troubling.

I'm curious if you are troubled by both of these or one more than the other.
Personally, the xml writer seems like a reasonable use to me. While I really
don't like the anonymous block hack (either the use or the implementation).

--- Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110306/a9d1aa8c/attachment.html>

More information about the Python-ideas mailing list