[Python-checkins] CVS: python/dist/src/Python compile.c,2.134,2.135
Thomas Wouters
python-dev@python.org
Thu, 24 Aug 2000 22:41:17 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4570/Python
Modified Files:
compile.c
Log Message:
Fix allowable node-types for assignment, need to add 'listmaker'.
(This fix is a bit broken, just as the test already was: the test for
testlist and listmaker are done always, whereas the test for exprlist and
the actual abort() are only done if Py_DEBUG is defined. Suggestions
welcome, I guess ;)
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.134
retrieving revision 2.135
diff -C2 -r2.134 -r2.135
*** compile.c 2000/08/24 20:11:31 2.134
--- compile.c 2000/08/25 05:41:11 2.135
***************
*** 1960,1964 ****
{
int i;
! if (TYPE(n) != testlist)
REQ(n, exprlist);
if (assigning) {
--- 1960,1964 ----
{
int i;
! if (TYPE(n) != testlist && TYPE(n) != listmaker)
REQ(n, exprlist);
if (assigning) {