Comment on draft PEP for deprecating six builtins

David Eppstein eppstein at ics.uci.edu
Mon Apr 29 02:53:31 EDT 2002


In article <aaim48$7fd$1 at bob.news.rcn.net>,
 "Raymond Hettinger" <python at rcn.com> wrote:

> The functionals (map, filter, and reduce) had greater importance 
> prior to the introduction of list comprehensions which are now the 
> preferred (and more readable) approach.

Map and filter, I can see substituting with list comprehensions.
But can you tell me how to use a list comprehension in place of reduce?

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list