summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-19 23:52:49 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-19 23:52:49 (GMT)
commit2b3f0ca2aca13733dbffd32098b3e69c17e841b8 (patch)
treed307a90a2c1383554b5074e8733cf5e4314ba6aa /Python
parent5b0705d26647fd72dd1be045faef4c0fab3ca3b0 (diff)
downloadcpython-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.c4
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));
}