[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.96,2.97
Tim Peters
tim_one@users.sourceforge.net
Fri, 06 Jul 2001 10:45:45 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv13211
Modified Files:
listobject.c
Log Message:
SF bug #439104: Tuple richcompares has code-typo.
Symptom: (1, 2, 3) <= (1, 2) returned 1.
This was already fixed in CVS for tuples, but an isomorphic error was in
the list richcompare code.
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.96
retrieving revision 2.97
diff -C2 -r2.96 -r2.97
*** listobject.c 2001/06/16 05:11:17 2.96
--- listobject.c 2001/07/06 17:45:43 2.97
***************
*** 1513,1517 ****
switch (op) {
case Py_LT: cmp = vs < ws; break;
! case Py_LE: cmp = ws <= ws; break;
case Py_EQ: cmp = vs == ws; break;
case Py_NE: cmp = vs != ws; break;
--- 1513,1517 ----
switch (op) {
case Py_LT: cmp = vs < ws; break;
! case Py_LE: cmp = vs <= ws; break;
case Py_EQ: cmp = vs == ws; break;
case Py_NE: cmp = vs != ws; break;