circuitpython/tests/basics/closure_manyvars.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
175 B
Python
Raw Permalink Normal View History

# test closure with lots of closed over variables
def f():
a, b, c, d, e, f, g, h = [i for i in range(8)]
def x():
print(a, b, c, d, e, f, g, h)
x()
f()