]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Improve variable name in sample code
authorRaymond Hettinger <python@rcn.com>
Tue, 22 Jan 2008 22:09:26 +0000 (22:09 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 22 Jan 2008 22:09:26 +0000 (22:09 +0000)
Doc/library/itertools.rst

index 419e8e581c9467d00d51fd68ac5c8b5565700227..05f1874ffa3f0726381e575ef434032790a944f5 100644 (file)
@@ -218,7 +218,7 @@ loops that truncate the stream.
       def imap(function, *iterables):
           iterables = map(iter, iterables)
           while True:
-              args = [i.next() for i in iterables]
+              args = [it.next() for it in iterables]
               if function is None:
                   yield tuple(args)
               else: