mirror of https://github.com/python/cpython.git
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:
parent
ed51494666
commit
6ee4234802
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue