PEP 572: Make variable name consistent
This commit is contained in:
parent
d5ddd49ee4
commit
f176cd632c
|
@ -59,7 +59,7 @@ These list comprehensions are all approximately equivalent::
|
|||
stuff = [pair(f(x)) for x in range(5)]
|
||||
|
||||
# Inline helper function
|
||||
stuff = [(lambda v: [v,v])(f(x)) for x in range(5)]
|
||||
stuff = [(lambda y: [y,y])(f(x)) for x in range(5)]
|
||||
|
||||
# Extra 'for' loop - see also Serhiy's optimization
|
||||
stuff = [[y, y] for x in range(5) for y in [f(x)]]
|
||||
|
|
Loading…
Reference in New Issue