1 2 3 4 5 6 7 8 9
# test passing named arg to closed-over function def f(): x = 1 def g(z): print(x, z) return g f()(z=42)