Fix for implicit tuple + default arguments, courtesy of Michael Hudson.

SF patch #103749
This commit is contained in:
Jeremy Hylton 2001-02-19 23:52:49 +00:00
parent 5b0705d266
commit 2b3f0ca2ac
1 changed files with 3 additions and 1 deletions

View File

@ -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));
}