summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/closure_manyvars.py
blob: 4ae723726bff6b65b095cf9b8163ffb318848bbe (plain) (blame)
1
2
3
4
5
6
7
8
9
# 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()