Antonio Cuni  committed 228da25

we cannot mix space.{eq,lt,gt,...}: we need to specialize the function

  • Participants
  • Parent commits ee7e8bd
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/array/

 from pypy.objspace.std.register_all import register_all
 from pypy.rlib.rarithmetic import ovfcheck
 from pypy.rlib.unroll import unrolling_iterable
+from pypy.rlib.objectmodel import specialize
 from pypy.rpython.lltypesystem import lltype, rffi
             raise OperationError(space.w_ValueError, space.wrap(msg))
     # Compare methods
+    @specialize.arg(3)
     def _cmp_impl(space, self, other, space_fn):
         if isinstance(other, W_ArrayBase):
             w_lst1 = array_tolist__Array(space, self)