[pypy-svn] r5381 - pypy/trunk/src/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Mon Jun 28 14:49:18 CEST 2004


Author: arigo
Date: Mon Jun 28 14:49:17 2004
New Revision: 5381

Modified:
   pypy/trunk/src/pypy/annotation/factory.py
Log:
progress for translate_pypy.


Modified: pypy/trunk/src/pypy/annotation/factory.py
==============================================================================
--- pypy/trunk/src/pypy/annotation/factory.py	(original)
+++ pypy/trunk/src/pypy/annotation/factory.py	Mon Jun 28 14:49:17 2004
@@ -156,7 +156,9 @@
         self.instancefactories = {}
         self.cls = cls
         self.subdefs = {}
-        assert len(cls.__bases__) <= 1, "single inheritance only right now"
+        assert (len(cls.__bases__) <= 1 or
+                cls.__bases__[1:] == (object,),   # for baseobjspace.Wrappable
+                "single inheritance only right now: %r" % (cls,))
         if cls.__bases__:
             base = cls.__bases__[0]
         else:



More information about the Pypy-commit mailing list