foldr function in Python

Peter Otten __peter__ at web.de
Fri Nov 23 09:20:38 EST 2007


Ant wrote:

> On Nov 23, 10:54 am, Steven D'Aprano <st... at REMOVE-THIS-
> cybersource.com.au> wrote:
> ...
>> Alas and alack, I believe that Guido has a distaste for all but the
>> simplest functional idioms, and an irrational belief that anything using
>> reduce() must be too complex to bear. reduce() is going away, not just
>> from the built-ins but (I believe) from the standard library as well.

I believe I've spotted an irrational belief in an irrational belief of the
BDFL here ;)

> I thought that at the last count it was merely being moved out into
> functools (or somewhere similar).

reduce() is indeed in the functools -- added by Guido van Rossum himself.

Peter



More information about the Python-list mailing list