diff Python/compile.c @ 3103:e51e17b2d88b legacy-trunk

fix bug with missing default for last arg (discovered by Tommy Burnette)
author Guido van Rossum <guido@python.org>
date Mon, 18 Sep 1995 21:44:04 +0000
parents 0261bf5b3819
children df07f28711fd
line wrap: on
line diff
--- a/Python/compile.c	Mon Sep 18 21:42:42 1995 +0000
+++ b/Python/compile.c	Mon Sep 18 21:44:04 1995 +0000
@@ -2139,8 +2139,9 @@
 		nargs++;
 		i++;
 		if (i >= nch)
-			break;
-		t = TYPE(CHILD(n, i));
+			t = RPAR; /* Anything except EQUAL or COMMA */
+		else
+			t = TYPE(CHILD(n, i));
 		if (t == EQUAL) {
 			i++;
 			ndefs++;