Re: on &rest and keyword args...
Posted: Mon Nov 19, 2012 5:45 pm
Ah, this must be a recent Python innovation. I haven't really used Python since 1.5 (but the version I have installed is 2.5.1). I get
Code: Select all
>>> def foo(b, x=1, y=2, *vargs, k=4, j=5, **kargs): pass
File "<stdin>", line 1
def foo(b, x=1, y=2, *vargs, k=4, j=5, **kargs): pass
^
SyntaxError: invalid syntax