[Python-checkins] r88421 - python/branches/py3k/Doc/whatsnew/3.2.rst
raymond.hettinger
python-checkins at python.org
Mon Feb 14 19:18:49 CET 2011
Author: raymond.hettinger
Date: Mon Feb 14 19:18:49 2011
New Revision: 88421
Log:
Fix accumulate() example. (Reported by David Murray.)
Modified:
python/branches/py3k/Doc/whatsnew/3.2.rst
Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst (original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst Mon Feb 14 19:18:49 2011
@@ -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]
More information about the Python-checkins
mailing list