micropython/tests/bytecode/mp-tests/listcomp4.py

5 lines
102 B
Python

# closing over a local variable in a list comprehension
def f():
a = 1
x = [a + b for b in l]