diff options
author | Raymond Hettinger <python@rcn.com> | 2011-02-14 18:18:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-02-14 18:18:49 (GMT) |
commit | 44efc6522a9c2a1ce7aed78860b325f6b8d541e5 (patch) | |
tree | e57e73c0d9f1909ef0d90b2db46a7152eb4405f1 /Doc/whatsnew/3.2.rst | |
parent | d585218a75159cbdf335ecfdaf92ed9715a045e7 (diff) | |
download | cpython-44efc6522a9c2a1ce7aed78860b325f6b8d541e5.zip cpython-44efc6522a9c2a1ce7aed78860b325f6b8d541e5.tar.gz cpython-44efc6522a9c2a1ce7aed78860b325f6b8d541e5.tar.bz2 |
Fix accumulate() example. (Reported by David Murray.)
Diffstat (limited to 'Doc/whatsnew/3.2.rst')
-rw-r--r-- | Doc/whatsnew/3.2.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 98d8599..d6c9b3f 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -824,7 +824,7 @@ itertools modeled on APL's *scan* operator and Numpy's *accumulate* function: >>> from itertools import accumulate - >>> list(accumulate(8, 2, 50)) + >>> list(accumulate([8, 2, 50])) [8, 10, 60] >>> prob_dist = [0.1, 0.4, 0.2, 0.3] |