[pypy-svn] r26559 - pypy/dist/pypy/rpython/ootypesystem

nik at codespeak.net nik at codespeak.net
Sat Apr 29 08:19:59 CEST 2006


Author: nik
Date: Sat Apr 29 08:19:54 2006
New Revision: 26559

Modified:
   pypy/dist/pypy/rpython/ootypesystem/ootype.py
Log:
return a runtime string from _defl and _example of the String type.


Modified: pypy/dist/pypy/rpython/ootypesystem/ootype.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/ootype.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/ootype.py	Sat Apr 29 08:19:54 2006
@@ -184,7 +184,10 @@
 class String(OOType):
 
     def _defl(self):
-        return ""
+        return make_string("")
+    
+    def _example(self):
+        return self._defl()
 
 String = String()
 



More information about the Pypy-commit mailing list