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

hpk at codespeak.net hpk at codespeak.net
Tue Nov 23 18:26:39 CET 2004


Author: hpk
Date: Tue Nov 23 18:26:38 2004
New Revision: 7634

Modified:
   pypy/trunk/src/pypy/annotation/builtin.py
Log:
added full support for longs, unicode and floats!



Modified: pypy/trunk/src/pypy/annotation/builtin.py
==============================================================================
--- pypy/trunk/src/pypy/annotation/builtin.py	(original)
+++ pypy/trunk/src/pypy/annotation/builtin.py	Tue Nov 23 18:26:38 2004
@@ -35,6 +35,15 @@
 def builtin_chr(s_int):
     return SomeChar()
 
+def builtin_unicode(s_obj): 
+    return SomeString() 
+
+def builtin_float(s_obj): 
+    return SomeObject() 
+
+def builtin_long(s_str): 
+    return SomeObject() 
+
 def our_issubclass(cls1, cls2):
     """ we're going to try to be less silly in the face of old-style classes"""
     return cls2 is object or issubclass(cls1, cls2)



More information about the Pypy-commit mailing list