New submission from James Lingard j...@aristanetworks.com:
def f((x)=0): pass
gives the following incorrect error message:
SyntaxError: non-default argument follows default argument
def f((x)): pass is treated exactly the same as def f(x): pass, so
it would seem sensible for the same
New submission from James Lingard j...@aristanetworks.com:
The following python file:
lambda a, a: 0
when executed gives the following backtrace:
File /tmp/test.py, line 0
SyntaxError: duplicate argument 'a' in function definition
Note that the line number is 0, not 1. (It's always