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

?
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.

regards
 Steve
--
Steve Holden               http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/
Holden Web LLC      +1 703 861 4237  +1 800 494 3119
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to