Fix buglet in sliceobjects, they were not returning Py_NotImplemented when
compared against something other than sliceobjects.
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c
index 498172d..eb66c79 100644
--- a/Objects/sliceobject.c
+++ b/Objects/sliceobject.c
@@ -286,6 +286,11 @@
PyObject *t2;
PyObject *res;
+ if (!PySlice_Check(v) || !PySlice_Check(w)) {
+ Py_INCREF(Py_NotImplemented);
+ return Py_NotImplemented;
+ }
+
if (v == w) {
/* XXX Do we really need this shortcut?
There's a unit test for it, but is that fair? */