mirror of
https://github.com/python/cpython.git
synced 2025-10-22 14:42:22 +00:00
Fix for implicit tuple + default arguments, courtesy of Michael Hudson.
SF patch #103749
This commit is contained in:
parent
5b0705d266
commit
2b3f0ca2ac
1 changed files with 3 additions and 1 deletions
|
@ -4667,7 +4667,9 @@ symtable_params(struct symtable *st, node *n)
|
||||||
for (j = 0; j <= complex; j++) {
|
for (j = 0; j <= complex; j++) {
|
||||||
c = CHILD(n, j);
|
c = CHILD(n, j);
|
||||||
if (TYPE(c) == COMMA)
|
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)
|
if (TYPE(CHILD(c, 0)) == LPAR)
|
||||||
symtable_params_fplist(st, CHILD(c, 1));
|
symtable_params_fplist(st, CHILD(c, 1));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue