This commit is contained in:
Raymond Hettinger 2010-12-04 20:51:36 +00:00
parent 41ea8ae667
commit d9404b5741
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ loops that truncate the stream.
total = next(it)
yield total
for element in it:
total += element
total = total + element
yield total
.. versionadded:: 3.2