Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfede31

Browse files
committed
Eh, better error message for the previous change. It now says
"non-default argument follows default argument".
1 parent 29d38cd commit dfede31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2724,7 +2724,7 @@ com_argdefs(c, n)
27242724
/* Treat "(a=1, b)" as an error */
27252725
if (ndefs)
27262726
com_error(c, PyExc_SyntaxError,
2727-
"Missing parameter default value");
2727+
"non-default argument follows default argument");
27282728
}
27292729
if (t != COMMA)
27302730
break;

0 commit comments

Comments
 (0)