From: Jeremy Hylton Date: Mon, 19 Feb 2001 23:52:49 +0000 (+0000) Subject: Fix for implicit tuple + default arguments, courtesy of Michael Hudson. X-Git-Tag: v2.1b1~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b3f0ca2aca13733dbffd32098b3e69c17e841b8;p=python Fix for implicit tuple + default arguments, courtesy of Michael Hudson. SF patch #103749 --- diff --git a/Python/compile.c b/Python/compile.c index bc568c9e66..f2d424b291 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4667,7 +4667,9 @@ symtable_params(struct symtable *st, node *n) for (j = 0; j <= complex; j++) { c = CHILD(n, j); if (TYPE(c) == COMMA) - c = CHILD(n, ++j); + c = CHILD(n, ++j); + else if (TYPE(c) == EQUAL) + c = CHILD(n, j += 3); if (TYPE(CHILD(c, 0)) == LPAR) symtable_params_fplist(st, CHILD(c, 1)); }