diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-28 01:59:51 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-28 01:59:51 (GMT) |
commit | 5bf7091df06a0aaa9cd9aec42621faca7abc2f6f (patch) | |
tree | 61308c04b7590966d5eaff719560ee002a566817 /Modules | |
parent | 5d44613e3bfd3b5e657b8dea808ef958543be7e0 (diff) | |
download | cpython-5bf7091df06a0aaa9cd9aec42621faca7abc2f6f.zip cpython-5bf7091df06a0aaa9cd9aec42621faca7abc2f6f.tar.gz cpython-5bf7091df06a0aaa9cd9aec42621faca7abc2f6f.tar.bz2 |
Update docstrings for itertools.accumulate().
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/itertoolsmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 4f58d57..5f0715d 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2678,9 +2678,9 @@ accumulate_next(accumulateobject *lz) } PyDoc_STRVAR(accumulate_doc, -"accumulate(iterable) --> accumulate object\n\ +"accumulate(iterable[, func]) --> accumulate object\n\ \n\ -Return series of accumulated sums."); +Return series of accumulated sums (or other binary function results)."); static PyTypeObject accumulate_type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -3638,7 +3638,7 @@ cycle(p) --> p0, p1, ... plast, p0, p1, ...\n\ repeat(elem [,n]) --> elem, elem, elem, ... endlessly or up to n times\n\ \n\ Iterators terminating on the shortest input sequence:\n\ -accumulate(p, start=0) --> p0, p0+p1, p0+p1+p2\n\ +accumulate(p[, func]) --> p0, p0+p1, p0+p1+p2\n\ chain(p, q, ...) --> p0, p1, ... plast, q0, q1, ... \n\ compress(data, selectors) --> (d[0] if s[0]), (d[1] if s[1]), ...\n\ dropwhile(pred, seq) --> seq[n], seq[n+1], starting when pred fails\n\ |