1. Pypy
  2. Untitled project
  3. pypy


Manuel Jacob  committed dcc8303

Return space.w_NotImplemented instead of raising FailedToImplement.

  • Participants
  • Parent commits 2921742
  • Branches remove-tuple-smm

Comments (0)

Files changed (1)

File pypy/objspace/std/tupleobject.py

View file
  • Ignore whitespace
 from pypy.objspace.std.model import registerimplementation, W_Object
 from pypy.objspace.std.register_all import register_all
 from pypy.objspace.std.inttype import wrapint
-from pypy.objspace.std.multimethod import FailedToImplement
 from rpython.rlib.rarithmetic import intmask
 from pypy.objspace.std.sliceobject import W_SliceObject, normalize_simple_slice
 from pypy.objspace.std import slicetype
             times = space.getindex_w(w_times, space.w_OverflowError)
         except OperationError, e:
             if e.match(space, space.w_TypeError):
-                raise FailedToImplement
+                return space.w_NotImplemented
         if times == 1 and space.type(self) == space.w_tuple:
             return self