mirror of
https://github.com/licsber/micropython.git
synced 2024-09-22 01:50:24 +08:00
10 lines
127 B
Python
10 lines
127 B
Python
|
# test passing named arg to closed-over function
|
||
|
|
||
|
def f():
|
||
|
x = 1
|
||
|
def g(z):
|
||
|
print(x, z)
|
||
|
return g
|
||
|
|
||
|
f()(z=42)
|