1. Armin Rigo
  2. cpython-withatomic

Commits

Raymond Hettinger  committed ec79aaf

Doc nit.

  • Participants
  • Parent commits 2f5cd18
  • Branches default

Comments (0)

Files changed (1)

File Doc/library/itertools.rst

View file
  • Ignore whitespace
             total = next(it)
             yield total
             for element in it:
-                total += element
+                total = total + element
                 yield total
 
     .. versionadded:: 3.2