]> granicus.if.org Git - python/commitdiff
Eh, better error message for the previous change. It now says
authorGuido van Rossum <guido@python.org>
Fri, 2 Oct 1998 14:06:56 +0000 (14:06 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Oct 1998 14:06:56 +0000 (14:06 +0000)
"non-default argument follows default argument".

Python/compile.c

index ef88eda20aa111f91454ac92bfc926dd83205da9..9871b0ff03deaca30a0563e0efe1d5d2f2c93bee 100644 (file)
@@ -2724,7 +2724,7 @@ com_argdefs(c, n)
                        /* Treat "(a=1, b)" as an error */
                        if (ndefs)
                                com_error(c, PyExc_SyntaxError,
-                                         "Missing parameter default value");
+                           "non-default argument follows default argument");
                }
                if (t != COMMA)
                        break;