From a1e7e6289301d981eff8357ed5b1f8ba95a9fc71 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 18 Sep 1995 21:44:04 +0000 Subject: [PATCH] fix bug with missing default for last arg (discovered by Tommy Burnette) --- Python/compile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Python/compile.c b/Python/compile.c index 9f15254aab0..a01e72ad91c 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2139,8 +2139,9 @@ com_argdefs(c, n) 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++;