[Python-Dev] Re: PEP 289 - Generator Expressions - Let's
MoveForward
David Eppstein
eppstein at ics.uci.edu
Fri Apr 30 18:28:12 EDT 2004
On 4/30/04 6:11 PM -0400 Barry Warsaw <barry at python.org> wrote:
>> Not all? When would [listcomp] ever not be replaceable by list(gencomp)?
>
> I dunno. I happen to like [listcomp] syntax over list(genexpr).
Oh, me too (and I'm getting a little irritated with writing dict([...]) so
often instead of having a proper dictcomp syntax) but semantically I think
they are the same.
--
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