Python complaints

Grant Edwards grant at nowhere.
Mon Dec 13 16:11:32 EST 1999


In article <oqvh621zpw.fsf at titan.progiciels-bpi.ca>, François Pinard wrote:

>> There's nothing you can do with "map" you couldn't do "more Pythonically"
>> with list comprehensions; e.g.
>>     sq = map(lambda a: a**2, x)
>> vs
>>     sq = [a**2 for a in x]

I like the second syntax better, but having "lambda" available
makes us Scheme geeks feel a bit more at home.

-- 
Grant Edwards                   grante             Yow!  Wow! Look!! A stray
                                  at               meatball!! Let's interview
                               visi.com            it!



More information about the Python-list mailing list