10 lines
127 B
Python
Raw Normal View History

2025-10-10 16:07:00 +08:00
# test passing named arg to closed-over function
def f():
x = 1
def g(z):
print(x, z)
return g
f()(z=42)