Example #1
0
 def conststr(self, str):
     oo = oostr(str)
     return history.ConstObj(ootype.cast_to_object(oo))
Example #2
0
def oo_rstring_to_float(s):
    from pypy.rpython.annlowlevel import oostr
    from pypy.rpython.ootypesystem import ootype
    lls = oostr(s)
    return ootype.ooparse_float(lls)
Example #3
0
def oo_rstring_to_float(s):
    from pypy.rpython.annlowlevel import oostr
    from pypy.rpython.ootypesystem import ootype
    lls = oostr(s)
    return ootype.ooparse_float(lls)
Example #4
0
 def f(arg):
     s = oostr(hlstr(arg))
     return s.ll_strlen()
Example #5
0
 def test_oostr(self):
     s = oostr("abc")
     assert ootype.typeOf(s) == ootype.String
     assert s._str == "abc"
Example #6
0
 def f(arg):
     s = oostr(hlstr(arg))
     return s.ll_strlen()
Example #7
0
 def test_oostr(self):
     s = oostr("abc")
     assert ootype.typeOf(s) == ootype.String
     assert s._str == "abc"