Commits

Armin Rigo committed a926b34

Less delegation for multimethods.

Comments (0)

Files changed (2)

pypy/objspace/std/objectobject.py

     'object()' call."""
     from pypy.objspace.std.objecttype import object_typedef as typedef
 
-
-# any-to-object delegation is quite trivial, because W_ObjectObject is.
-def delegate__ANY(space, w_obj):
-    return W_ObjectObject(space)
-delegate__ANY.result_class = W_ObjectObject
-delegate__ANY.priority = PRIORITY_PARENT_TYPE
-
 # ____________________________________________________________
 
 

pypy/objspace/std/unicodeobject.py

     return W_UnicodeObject(space, unicode(space.str_w(w_str)))
 delegate__String.result_class = W_UnicodeObject
 delegate__String.priority = PRIORITY_CHANGE_TYPE
-delegate__String.can_fail = True
 
 def eq__Unicode_ANY(space, w_uni, w_other):
     try: