PEP 572: Make variable name consistent

This commit is contained in:
Chris Angelico 2018-02-28 21:39:51 +11:00
parent d5ddd49ee4
commit f176cd632c
1 changed files with 1 additions and 1 deletions

View File

@ -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)]]