[Python-Dev] List comprehension syntax (Features for Python 2.0)

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Tue, 25 Jul 2000 20:31:10 +0200


mal wrote:
> Wouldn't it make much more sense to write something
> more lambda function like, e.g.
>=20
>     [for (x,y) in zip([10,20,30], [1,2,3]): x+y]
>=20
> or
>=20
>     [for x in range(100): x*2]

fwiw, I read that as:

    [
        for x in range(100):
            x * 2
    ]

which makes no sense at all.

</F>