[Python-Dev] list comprehensions again...

Ka-Ping Yee pingster@ilm.com
Tue, 11 Jul 2000 17:47:00 -0700 (PDT)

On Tue, 11 Jul 2000, Paul Prescod wrote:
> map( lambda x: x.foo(), lst )
> Python is an OO-ish language after all! Anyhow, with list comprehensions
> we could dump map/filter and probably lambda.

Yeah, that would be quite nice.

    [x.foo(), for x in lst]

What beauty!  <gentle sigh of peace and contentment>

-- ?!ng