Python3: on removing map, reduce, filter

Steve Holden steve at
Sun Jan 9 10:59:59 EST 2005

Andrey Tatarinov wrote:

> Hi.
> How does GvR suggestions on removing map(), reduce(), filter() correlate 
> with the following that he wrote himself (afaik):
> ?
It promotes the sensible realization that when optimization is the goal 
code may well tend to get ugly, sometimes uglier than necessary. Note 
that the first version is completely straightforward and comprehensible.

And note that the summary in the conclusiogn BEGINS with "Rule number 
one: only optimize when there is a proven speed bottleneck", which seems 
to adequately imply that straightforward code is to be preferred unless 
speed requirements override that.

Steve Holden     
Python Web Programming
Holden Web LLC      +1 703 861 4237  +1 800 494 3119

More information about the Python-list mailing list