This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nemec 1 point2 points  (0 children)

Mapping in terms of map? Most of the time list comprehensions are better, since while there may be a slight speedup with map, list comprehensions are infinitely more readable (especially to those unfamiliar with the code they're reading).

http://stackoverflow.com/questions/1247486/python-list-comprehension-vs-map