summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerrit Holl <gerrit.holl@gmail.com>2018-07-04 22:26:32 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2018-07-04 22:26:32 (GMT)
commitbd81cbd584e89ffcf4751e83be9c7cac369206bd (patch)
treea3e513a5da70423d92b15afcffd21f8ca4fc56fb
parent5b6e49a1393b3e2313471696e3568e26296137b4 (diff)
downloadcpython-bd81cbd584e89ffcf4751e83be9c7cac369206bd.zip
cpython-bd81cbd584e89ffcf4751e83be9c7cac369206bd.tar.gz
cpython-bd81cbd584e89ffcf4751e83be9c7cac369206bd.tar.bz2
DOC: In `reduce`, refer to `accumulate` (GH-7930)
-rw-r--r--Doc/library/functools.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index d0e3c7b..5e278f9 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -263,6 +263,8 @@ The :mod:`functools` module defines the following functions:
value = function(value, element)
return value
+ See :func:`itertools.accumulate` for an iterator that yields all intermediate
+ values.
.. decorator:: singledispatch