[Python-checkins] CVS: python/dist/src/Python compile.c,2.167,2.168
Jeremy Hylton
jhylton@users.sourceforge.net
Mon, 19 Feb 2001 15:52:51 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv1632
Modified Files:
compile.c
Log Message:
Fix for implicit tuple + default arguments, courtesy of Michael Hudson.
SF patch #103749
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.167
retrieving revision 2.168
diff -C2 -r2.167 -r2.168
*** compile.c 2001/02/19 15:50:51 2.167
--- compile.c 2001/02/19 23:52:49 2.168
***************
*** 4668,4672 ****
c = CHILD(n, j);
if (TYPE(c) == COMMA)
! c = CHILD(n, ++j);
if (TYPE(CHILD(c, 0)) == LPAR)
symtable_params_fplist(st, CHILD(c, 1));
--- 4668,4674 ----
c = CHILD(n, j);
if (TYPE(c) == COMMA)
! 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));