commit | 44efc6522a9c2a1ce7aed78860b325f6b8d541e5 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Feb 14 18:18:49 2011 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Feb 14 18:18:49 2011 +0000 |
tree | e57e73c0d9f1909ef0d90b2db46a7152eb4405f1 | |
parent | d585218a75159cbdf335ecfdaf92ed9715a045e7 [diff] |
Fix accumulate() example. (Reported by David Murray.)
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 @@ 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]