[Python-Dev] RE: list comprehensions (was parsers and compilers for 2.0)

Mark Hammond MarkH@ActiveState.com
Sun, 13 Aug 2000 11:02:36 +1000


ESR, responding to 

[(x, y) for y in something for x in somewhere if y in x]

for list comprehension syntax:

> Damn.  That's unfortunate.  With all due respect to the BDFL, I've come
> to believe that having special syntax for this (rather than constructor
> functions a la zip()) is a bad mistake.  I predict it's going to come
> back to bite us hard in the future.

FWIW, these are my thoughts exactly (for this particular issue, anyway).

Wont-bother-voting-cos-nobody-is-counting ly,

Mark.