[pypy-svn] r8800 - pypy/dist/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Wed Feb 2 12:27:09 CET 2005


Author: arigo
Date: Wed Feb  2 12:27:09 2005
New Revision: 8800

Modified:
   pypy/dist/pypy/objspace/std/objectobject.py
   pypy/dist/pypy/objspace/std/unicodeobject.py
Log:
Less delegation for multimethods.


Modified: pypy/dist/pypy/objspace/std/objectobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/objectobject.py	(original)
+++ pypy/dist/pypy/objspace/std/objectobject.py	Wed Feb  2 12:27:09 2005
@@ -6,13 +6,6 @@
     '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
-
 # ____________________________________________________________
 
 

Modified: pypy/dist/pypy/objspace/std/unicodeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/unicodeobject.py	(original)
+++ pypy/dist/pypy/objspace/std/unicodeobject.py	Wed Feb  2 12:27:09 2005
@@ -9,7 +9,6 @@
     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:



More information about the Pypy-commit mailing list