[pypy-svn] rev 2292 - pypy/trunk/src/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Mon Dec 8 17:04:54 CET 2003


Author: arigo
Date: Mon Dec  8 17:04:54 2003
New Revision: 2292

Modified:
   pypy/trunk/src/pypy/objspace/std/cpythonobject.py
   pypy/trunk/src/pypy/objspace/std/default.py
Log:
issubtype hacks to make test_exceptcomp.py work in stdobjspace with 
cpythonobjects.


Modified: pypy/trunk/src/pypy/objspace/std/cpythonobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/cpythonobject.py	(original)
+++ pypy/trunk/src/pypy/objspace/std/cpythonobject.py	Mon Dec  8 17:04:54 2003
@@ -286,6 +286,9 @@
 def issubtype__CPython_ANY(space, w_obj, w_other):
     return space.newbool(0)
 
+def issubtype__ANY_CPython(space, w_obj, w_other):
+    return space.newbool(0)
+
 def issubtype__CPython_CPython(space, w_obj, w_other):
     return space.newbool(issubclass(space.unwrap(w_obj),
                                     space.unwrap(w_other)))

Modified: pypy/trunk/src/pypy/objspace/std/default.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/default.py	(original)
+++ pypy/trunk/src/pypy/objspace/std/default.py	Mon Dec  8 17:04:54 2003
@@ -75,9 +75,9 @@
 def is_data_descr__ANY(space, w_descr):
     return 0
 
-def issubtype__ANY_ANY(space, w_one, w_two):
-    # XXX -- mwh
-    return space.newbool(0)
-    # XXX why is it there ? -- Armin
+#def issubtype__ANY_ANY(space, w_one, w_two):
+#    # XXX -- mwh
+#    return space.newbool(0)
+#    # XXX why is it there ? -- Armin
 
 register_all(vars())


More information about the Pypy-commit mailing list