]> granicus.if.org Git - python/commitdiff
Patch # 1739906 by Christian Heimes -- add reduce to functools (importing
authorGuido van Rossum <guido@python.org>
Mon, 27 Aug 2007 20:51:00 +0000 (20:51 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Aug 2007 20:51:00 +0000 (20:51 +0000)
it from __builtin__).

Lib/functools.py

index bb13713a9c869b7f60a8dec91111085318c46561..30e1d24fd2849269789cf76c6c9855949c4a99ad 100644 (file)
@@ -8,6 +8,7 @@
 # See C source code for _functools credits/copyright
 
 from _functools import partial
+from __builtin__ import reduce
 
 # update_wrapper() and wraps() are tools to help write
 # wrapper functions that can handle naive introspection