List comprehension confusion...
Erik Max Francis
max at alcyone.com
Sun Feb 2 01:46:33 EST 2003
Lulu of the Lotus-Eaters wrote:
> Just to throw flame on the fire, I am one of the odd people who find
> map
> quite readable too:
>
> result = map(lambda t: t.some_field, data)
I find it quite readable as well, even with lambdas, provided they're
not too involved. List comprehensions just make it more readable, and
can throw in filter functionality to boot.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Winners are men who have dedicated their whole lives to winning.
\__/ Woody Hayes
7 Sisters Productions / http://www.7sisters.com/
Web design for the future.
More information about the Python-list
mailing list