diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-19 23:52:49 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-19 23:52:49 (GMT) |
commit | 2b3f0ca2aca13733dbffd32098b3e69c17e841b8 (patch) | |
tree | d307a90a2c1383554b5074e8733cf5e4314ba6aa /Python | |
parent | 5b0705d26647fd72dd1be045faef4c0fab3ca3b0 (diff) | |
download | cpython-2b3f0ca2aca13733dbffd32098b3e69c17e841b8.zip cpython-2b3f0ca2aca13733dbffd32098b3e69c17e841b8.tar.gz cpython-2b3f0ca2aca13733dbffd32098b3e69c17e841b8.tar.bz2 |
Fix for implicit tuple + default arguments, courtesy of Michael Hudson.
SF patch #103749
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index bc568c9..f2d424b 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)); } |