View Single Post
Old Jun 10th, 2006, 11:04 AM   #25
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Quote:
Originally Posted by Sane
I find it quite silly how Python3 decided to add things like "any()" and "all()" when they are even easier to make yourself then the functions they are taking away ("filter()", "map()").
Depends what you are working on.

I think filter() and map() were introduced to Python before list comprehension came around. List comprehension is probably more efficient, particularly if you use the corresponding generator.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote