Commits

Philip Jenvey committed ed6f1ae

kill remnants of smallintobject

Comments (0)

Files changed (2)

pypy/objspace/std/boolobject.py

 def delegate_Bool2IntObject(space, w_bool):
     return W_IntObject(int(w_bool.boolval))
 
-def delegate_Bool2SmallInt(space, w_bool):
-    from pypy.objspace.std.smallintobject import W_SmallIntObject
-    return W_SmallIntObject(int(w_bool.boolval))   # cannot overflow
-
 
 def nonzero__Bool(space, w_bool):
     return w_bool

pypy/objspace/std/intobject.py

 
 registerimplementation(W_IntObject)
 
-# NB: This code is shared by smallintobject.py, and thus no other Int
-# multimethods should be invoked from these implementations. Instead, add an
-# alias and then teach copy_multimethods in smallintobject.py to override
-# it. See int__Int for example.
-
 def repr__Int(space, w_int1):
     a = w_int1.intval
     res = str(a)