From: Raymond Hettinger Date: Mon, 14 Feb 2011 18:18:49 +0000 (+0000) Subject: Fix accumulate() example. (Reported by David Murray.) X-Git-Tag: v3.2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44efc6522a9c2a1ce7aed78860b325f6b8d541e5;p=python Fix accumulate() example. (Reported by David Murray.) --- diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 98d8599927..d6c9b3f5da 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]