mirror of https://github.com/python/cpython
Fix for implicit tuple + default arguments, courtesy of Michael Hudson.
SF patch #103749
This commit is contained in:
parent
5b0705d266
commit
2b3f0ca2ac
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue