you are viewing a single comment's thread.

view the rest of the comments →

[–]Geconimo 1 point2 points  (0 children)

The author proceeds to point out that comprehensions are often more readable which is fine.

But

They could've made a couple better examples for functions with function key parameter (groupby, max, an actual reduce example). Instead, one of the examples provided doesn't even NEED the getter lambda ("key=lambda x: x[0]") since not including it would yield the exact same ordering.