PEP 289: Generator Expressions (please comment)

Michele Simionato mis6 at pitt.edu
Sat Oct 25 05:07:32 EDT 2003


chrisperkins37 at hotmail.com (Chris Perkins) wrote in message news:<45228044.0310240442.4903f866 at posting.google.com>...
> Raymond Hettinger:
> >
> >     http://www.python.org/peps/pep-0289.html
> > 
> 
> I like it. This made me realize that list comprehension sytax is a
> special case that never really needed to be special-cased.
> 
> In fact, list comprehensions themselves become redundant syntactic
> sugar under the new proposal:
> 
> [foo(x) for x in bar] ==> list(foo(x) for x in bar)
> 
> Chris Perkins

... and here I proclaim list comprehension deprecated!

 ;) M.




More information about the Python-list mailing list