[pypy-svn] r26128 - pypy/dist/pypy/annotation

antocuni at codespeak.net antocuni at codespeak.net
Sat Apr 22 11:51:58 CEST 2006


Author: antocuni
Date: Sat Apr 22 11:51:51 2006
New Revision: 26128

Modified:
   pypy/dist/pypy/annotation/model.py
Log:
Added support for all subclasses of ootype.BuiltinType, not only List



Modified: pypy/dist/pypy/annotation/model.py
==============================================================================
--- pypy/dist/pypy/annotation/model.py	(original)
+++ pypy/dist/pypy/annotation/model.py	Sat Apr 22 11:51:51 2006
@@ -559,7 +559,7 @@
     except TypeError:
         s = None    # unhashable T, e.g. a Ptr(GcForwardReference())
     if s is None:
-        if isinstance(T, (ootype.Instance, ootype.List)):
+        if isinstance(T, (ootype.Instance, ootype.BuiltinType)):
             return SomeOOInstance(T)
         elif isinstance(T, ootype.StaticMethod):
             return SomeOOStaticMeth(T)



More information about the Pypy-commit mailing list