Replace reduce with listcomprehension?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Tue Aug 26 01:48:00 CEST 2008


On Tue, 26 Aug 2008 00:53:35 +0200, Diez B. Roggisch wrote:

>> So it seems only reduce will be eliminated.
> 
> Nope. From the link you provided yourself:
> 
> """
> Only reduce will be removed from the 3.0 standard library. You can
> import it from functools.
> """

functools isn't in the standard library??? 

*wink*

Seriously, I think Guido meant "built-ins". Since I don't agree with him 
that reduce() is hard to read, I disagree that accumulators are easier to 
use. But since reduce is only an import away, I'm satisfied.


-- 
Steven



More information about the Python-list mailing list