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

5 wiersze
102 B
Python

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