[pypy-svn] r48456 - pypy/branch/pypy-rpython-unicode/rpython
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Nov 8 22:55:54 CET 2007
Author: cfbolz
Date: Thu Nov 8 22:55:54 2007
New Revision: 48456
Modified:
pypy/branch/pypy-rpython-unicode/rpython/rstr.py
Log:
more tests passing
Modified: pypy/branch/pypy-rpython-unicode/rpython/rstr.py
==============================================================================
--- pypy/branch/pypy-rpython-unicode/rpython/rstr.py (original)
+++ pypy/branch/pypy-rpython-unicode/rpython/rstr.py Thu Nov 8 22:55:54 2007
@@ -249,6 +249,8 @@
return hop.gendirectcall(self.ll.ll_int, v_str, v_base)
def rtype_unicode(self, hop):
+ if hop.args_s[0].is_constant():
+ return hop.inputconst(hop.r_result, hop.s_result.const)
repr = hop.args_r[0].repr
v_str = hop.inputarg(repr, 0)
hop.exception_cannot_occur()
More information about the Pypy-commit
mailing list