summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 20:51:00 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 20:51:00 (GMT)
commitd51b579c51d393eb308cd486ca6ca610d12b9d48 (patch)
tree7c0b95bee6c37d6dd0603930835a6509aa8c0609
parent8ee23bbe7cec658d0dfc9f51f37fe392d98acafc (diff)
downloadcpython-d51b579c51d393eb308cd486ca6ca610d12b9d48.zip
cpython-d51b579c51d393eb308cd486ca6ca610d12b9d48.tar.gz
cpython-d51b579c51d393eb308cd486ca6ca610d12b9d48.tar.bz2
Patch # 1739906 by Christian Heimes -- add reduce to functools (importing
it from __builtin__).
-rw-r--r--Lib/functools.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index bb13713..30e1d24 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -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