From 2b3f0ca2aca13733dbffd32098b3e69c17e841b8 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Mon, 19 Feb 2001 23:52:49 +0000 Subject: [PATCH] Fix for implicit tuple + default arguments, courtesy of Michael Hudson. SF patch #103749 --- Python/compile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Python/compile.c b/Python/compile.c index bc568c9e668..f2d424b291b 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)); }