summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/mp-tests/closure3.py
blob: 905211317ac47f68b016630fa669a0c6776c8441 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# test when different variables are closed over by different functions

def f():
    l1 = 1
    l2 = 2
    l3 = 3

    def g():
        return l1 + l2

    def h():
        return l2 + l3