
April 30, 2004
3:28 p.m.
On 4/30/04 6:11 PM -0400 Barry Warsaw <barry@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