micropython/tests/bytecode/mp-tests/fun4.py

6 lines
181 B
Python
Raw Normal View History

2014-04-13 01:00:32 +08:00
def f(a, b=1, *c, d):
pass
#print(a,b,c,d) # bug in uPy!
f = lambda a, b, *c, d: None # default arg
#f = lambda a, b=1, *c, d: None # default arg for lambda not implemented