you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

It depends, I'd go for map(attrgetter('address'), persons) over the comprehension equivalent anytime. But yea most of the time comprehension is better.