diff --git a/pep-0572.rst b/pep-0572.rst index fad30bd45..573966c5b 100644 --- a/pep-0572.rst +++ b/pep-0572.rst @@ -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)]]