mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Improve variable name in sample code
This commit is contained in:
parent
9ed5b57fe2
commit
2dec48d1c5
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ loops that truncate the stream.
|
||||||
def imap(function, *iterables):
|
def imap(function, *iterables):
|
||||||
iterables = map(iter, iterables)
|
iterables = map(iter, iterables)
|
||||||
while True:
|
while True:
|
||||||
args = [i.next() for i in iterables]
|
args = [it.next() for it in iterables]
|
||||||
if function is None:
|
if function is None:
|
||||||
yield tuple(args)
|
yield tuple(args)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue