blob: 6828f89008ba828173b35493b35485217ab1e6ed (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | # test when a function has cell and free vars
def f():
    f_local = 1
    f_cell = 2
    def g():
        g_local = 3
        g_cell = f_cell + 4
        def h():
            h1_local = 4
            h2_local = f_cell + g_cell
 |