You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"def f((x)): pass" is treated exactly the same as "def f(x): pass", so
it would seem sensible for the same to be true if a default value is
used. But if this syntax is disallowed for some reason, the error
message should be fixed.
Activity
jameslingard commentedon Nov 19, 2009
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 to be true if a default value is
used. But if this syntax is disallowed for some reason, the error
message should be fixed.
This appears to be related to bug bpo-1557232.
[Tested on Python 2.6 (r26:66714, Jun 8 2009, 16:07:29).]
benjaminp commentedon Nov 19, 2009
Fixed in r76416.