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

pedronis at codespeak.net pedronis at codespeak.net
Wed Aug 31 15:34:45 CEST 2005


Author: pedronis
Date: Wed Aug 31 15:34:44 2005
New Revision: 17118

Modified:
   pypy/dist/pypy/annotation/unaryop.py
Log:
don't attach is_type_of to a cached pbc.



Modified: pypy/dist/pypy/annotation/unaryop.py
==============================================================================
--- pypy/dist/pypy/annotation/unaryop.py	(original)
+++ pypy/dist/pypy/annotation/unaryop.py	Wed Aug 31 15:34:44 2005
@@ -41,7 +41,7 @@
         if moreargs:
             raise Exception, 'type() called with more than one argument'
         if obj.is_constant():
-            r = immutablevalue(obj.knowntype)
+            r = SomePBC({obj.knowntype: True})
         else:
             r = SomeObject()
             r.knowntype = type



More information about the Pypy-commit mailing list