Python3: on removing map, reduce, filter

Andrey Tatarinov elephantum at dezcom.mephi.ru
Sun Jan 9 17:10:49 CET 2005


Steve Holden wrote:
> Andrey Tatarinov wrote:
> 
>> Hi.
>>
>> How does GvR suggestions on removing map(), reduce(), filter() 
>> correlate with the following that he wrote himself (afaik):
>>
>> http://www.python.org/doc/essays/list2str.html
 >
> 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.

My main question was: "how could be this advices applied, when map, 
reduce and filter would be removed?"

but earlier I got answers about speed of list comprehensions, though 
they need to be proved.



More information about the Python-list mailing list