summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-06 17:45:43 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-06 17:45:43 (GMT)
commit6ee42348025611f537b80d5dbf55f4d5b9bd58f2 (patch)
tree39578bf078a74e0410d7e68e3a8a813e450c844d /Objects/listobject.c
parented514946666b6cba0ecef03b2adc96d0cd1d14e9 (diff)
downloadcpython-6ee42348025611f537b80d5dbf55f4d5b9bd58f2.zip
cpython-6ee42348025611f537b80d5dbf55f4d5b9bd58f2.tar.gz
cpython-6ee42348025611f537b80d5dbf55f4d5b9bd58f2.tar.bz2
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.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 6fb3145..7166ced 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -1512,7 +1512,7 @@ list_richcompare(PyObject *v, PyObject *w, int op)
PyObject *res;
switch (op) {
case Py_LT: cmp = vs < ws; break;
- case Py_LE: cmp = ws <= ws; break;
+ case Py_LE: cmp = vs <= ws; break;
case Py_EQ: cmp = vs == ws; break;
case Py_NE: cmp = vs != ws; break;
case Py_GT: cmp = vs > ws; break;