[pypy-commit] pypy remove-remaining-smm: Fix.

Manuel Jacob noreply at buildbot.pypy.org
Mon Feb 24 21:56:10 CET 2014


Author: Manuel Jacob
Branch: remove-remaining-smm
Changeset: r69369:89210628cd59
Date: 2014-02-24 21:44 +0100
http://bitbucket.org/pypy/pypy/changeset/89210628cd59/

Log:	Fix.

diff --git a/pypy/objspace/std/sliceobject.py b/pypy/objspace/std/sliceobject.py
--- a/pypy/objspace/std/sliceobject.py
+++ b/pypy/objspace/std/sliceobject.py
@@ -137,6 +137,8 @@
     def descr_lt(self, space, w_other):
         if space.is_w(self, w_other):
             return space.w_False   # see comments in descr_eq()
+        if not isinstance(w_other, W_SliceObject):
+            return space.w_NotImplemented
         if space.eq_w(self.w_start, w_other.w_start):
             if space.eq_w(self.w_stop, w_other.w_stop):
                 return space.lt(self.w_step, w_other.w_step)


More information about the pypy-commit mailing list