]> granicus.if.org Git - python/commitdiff
Document rev. 57574.
authorGeorg Brandl <georg@python.org>
Tue, 28 Aug 2007 08:29:08 +0000 (08:29 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 28 Aug 2007 08:29:08 +0000 (08:29 +0000)
Doc/library/functools.rst

index c7e4dfca7a80136dae9a7572e08832bbb0813485..f2f17b84905e33abae4370eb9657629caa7e29e4 100644 (file)
@@ -15,7 +15,15 @@ The :mod:`functools` module is for higher-order functions: functions that act on
 or return other functions. In general, any callable object can be treated as a
 function for the purposes of this module.
 
-The :mod:`functools` module defines the following function:
+The :mod:`functools` module defines the following functions:
+
+
+.. function:: reduce(function, iterable[, initializer])
+
+   This is the same function as :func:`reduce`.  It is made available in this module
+   to allow writing code more forward-compatible with Python 3.
+
+   .. versionadded:: 2.6
 
 
 .. function:: partial(func[,*args][, **keywords])