
Oct. 21, 2003
10:11 p.m.
I think it's well worth overcoming come "community resistance to new syntax" to get this kind of advantage easily. The trick of binding outer-scope variables as default args is neat but buys less than the pure idea of just using a generator rather than a list comprehension.
Thanks for the measurements! Is someone interested in writing up a PEP and taking it to the community? Or do I have to do it myself (and risk another newsgroup meltdown)? --Guido van Rossum (home page: http://www.python.org/~guido/)