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

5 lines
102 B
Python
Raw Normal View History

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