closure_manyvars.py 175 B

123456789
  1. # test closure with lots of closed over variables
  2. def f():
  3. a, b, c, d, e, f, g, h = [i for i in range(8)]
  4. def x():
  5. print(a, b, c, d, e, f, g, h)
  6. x()
  7. f()