[Python-Dev] Re: PEP 289 - Generator Expressions - Let's MoveForward
David Eppstein
eppstein at ics.uci.edu
Fri Apr 30 18:09:23 EDT 2004
In article <LNBBLJKPBEHFEDALKOLCAEPOKJAB.tim.one at comcast.net>,
"Tim Peters" <tim.one at comcast.net> wrote:
> > Personally, I'd only like to see generator expressions added to Python
> > if they can allow list comprehensions to be deprecated -- to avoid
> > language clutter.
>
> Listcomps can be deprecated, although not all existing uses of listcomps
> will translate directly into genexps.
Not all? When would [listcomp] ever not be replaceable by list(gencomp)?
--
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
More information about the Python-Dev
mailing list