There was an error while loading. Please reload this page.
1 parent 2d5bf56 commit dfef986Copy full SHA for dfef986
1 file changed
Objects/listobject.c
@@ -2664,6 +2664,9 @@ list_richcompare(PyObject *v, PyObject *w, int op)
2664
for (i = 0; i < Py_SIZE(vl) && i < Py_SIZE(wl); i++) {
2665
PyObject *vitem = vl->ob_item[i];
2666
PyObject *witem = wl->ob_item[i];
2667
+ if (vitem == witem) {
2668
+ continue;
2669
+ }
2670
2671
Py_INCREF(vitem);
2672
Py_INCREF(witem);
0 commit comments