[Python-ideas] Make-statement [Re: Different interface for namedtuple?]
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
> > <
> > 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).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas