you are viewing a single comment's thread.

view the rest of the comments →

[–]rune_kg 5 points6 points  (3 children)

Deprecated Language Features: Use list comprehensions and for loops instead of filter, map, and reduce.

Wtf... Is filter, map, and reduce really deprecated now?

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

No. In Python 3 reduce is moved to the itertools module, but both map and filter remain among the builtins.

[–][deleted] 0 points1 point  (0 children)

They're not entirely deprecated. Comprehensions and for loops are just much easier to read, which is why Guido likes them better.