[Python-checkins] DOC: In `reduce`, refer to `accumulate` (GH-7930)

Raymond Hettinger webhook-mailer at python.org
Wed Jul 4 18:26:35 EDT 2018


https://github.com/python/cpython/commit/bd81cbd584e89ffcf4751e83be9c7cac369206bd
commit: bd81cbd584e89ffcf4751e83be9c7cac369206bd
branch: master
author: Gerrit Holl <gerrit.holl at gmail.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2018-07-04T15:26:32-07:00
summary:

DOC: In `reduce`, refer to `accumulate` (GH-7930)

files:
M Doc/library/functools.rst

diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index d0e3c7b201c2..5e278f9fe98f 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
 



More information about the Python-checkins mailing list