mirror of
https://github.com/python/cpython.git
synced 2025-09-11 19:27:07 +00:00
Eh, better error message for the previous change. It now says
"non-default argument follows default argument".
This commit is contained in:
parent
29d38cd088
commit
dfede31c7f
1 changed files with 1 additions and 1 deletions
|
@ -2724,7 +2724,7 @@ com_argdefs(c, n)
|
||||||
/* Treat "(a=1, b)" as an error */
|
/* Treat "(a=1, b)" as an error */
|
||||||
if (ndefs)
|
if (ndefs)
|
||||||
com_error(c, PyExc_SyntaxError,
|
com_error(c, PyExc_SyntaxError,
|
||||||
"Missing parameter default value");
|
"non-default argument follows default argument");
|
||||||
}
|
}
|
||||||
if (t != COMMA)
|
if (t != COMMA)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue