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.
This commit is contained in:
Tim Peters 2001-07-06 17:45:43 +00:00
parent ed51494666
commit 6ee4234802
1 changed files with 1 additions and 1 deletions

View File

@ -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;