Author: Philip Jenvey <[email protected]>
Branch: 
Changeset: r64951:ed6f1ae8a8f8
Date: 2013-06-20 17:00 -0700
http://bitbucket.org/pypy/pypy/changeset/ed6f1ae8a8f8/

Log:    kill remnants of smallintobject

diff --git a/pypy/objspace/std/boolobject.py b/pypy/objspace/std/boolobject.py
--- a/pypy/objspace/std/boolobject.py
+++ b/pypy/objspace/std/boolobject.py
@@ -50,10 +50,6 @@
 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
diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py
--- a/pypy/objspace/std/intobject.py
+++ b/pypy/objspace/std/intobject.py
@@ -59,11 +59,6 @@
 
 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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to