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

gromit at codespeak.net gromit at codespeak.net
Tue Jan 24 11:02:27 CET 2006


Author: gromit
Date: Tue Jan 24 11:02:26 2006
New Revision: 22571

Modified:
   pypy/dist/pypy/annotation/bookkeeper.py
Log:
ADD: (gromit,stephan) Added a case to Bookkeeper.immutablevalue that annotates rcypte's type descriptor classes.

Modified: pypy/dist/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/annotation/bookkeeper.py	(original)
+++ pypy/dist/pypy/annotation/bookkeeper.py	Tue Jan 24 11:02:26 2006
@@ -354,6 +354,8 @@
         elif ishashable(x) and x in BUILTIN_ANALYZERS:
 	    _module = getattr(x,"__module__","unknown")
             result = SomeBuiltin(BUILTIN_ANALYZERS[x], methodname="%s.%s" % (_module, x.__name__))
+        elif hasattr(x, "compute_result_annotation"):
+            result = SomeBuiltin(x.compute_result_annotation, "?" )
         elif tp in EXTERNAL_TYPE_ANALYZERS:
             result = SomeExternalObject(tp)
         elif isinstance(x, lltype._ptr):



More information about the Pypy-commit mailing list