[Python-3000] Python 3000 Status Update (Long!)

Christian Heimes lists at cheimes.de
Tue Jun 19 21:17:06 CEST 2007


Bill Janssen wrote:
> Though, from the standpoint of pragmatism, removing "reduce" from the
> built-in space will break code (*my* code, among others), and leaving
> it in will not affect "purity", as both "map" and "reduce" are being
> left in.  So leaving it alone seems the more Pythonic response to me.

Python 3000 tries to reduce (hehe) the amount of builtins so reduce was
removed since it is rarely used. I don't understand why map and filter
wasn't moved to functools, too.

You made one good point. At the moment you can't write code that
utilizes reduce and works under 2.6 and 3.0. from functools import
reduce fails in 2.6. The 2to3 suite has no fixer for reduce. My patch
removes the flaw: http://www.python.org/sf/1739906

Christian



More information about the Python-3000 mailing list