[Python-checkins] r57611 - python/trunk/Doc/library/functools.rst

georg.brandl python-checkins at python.org
Tue Aug 28 10:29:08 CEST 2007


Author: georg.brandl
Date: Tue Aug 28 10:29:08 2007
New Revision: 57611

Modified:
   python/trunk/Doc/library/functools.rst
Log:
Document rev. 57574.


Modified: python/trunk/Doc/library/functools.rst
==============================================================================
--- python/trunk/Doc/library/functools.rst	(original)
+++ python/trunk/Doc/library/functools.rst	Tue Aug 28 10:29:08 2007
@@ -15,7 +15,15 @@
 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])


More information about the Python-checkins mailing list