Commits

Alex Gaynor  committed 1b9308a

Unroll a function in newformat with constant args. Thanks to Aaron Iles for the patch.

  • Participants
  • Parent commits bf600fa

Comments (0)

Files changed (1)

File pypy/objspace/std/newformat.py

 
 
 @specialize.argtype(1)
+@jit.look_inside_iff(lambda space, s, start, end:
+       jit.isconstant(s) and
+       jit.isconstant(start) and
+       jit.isconstant(end))
 def _parse_int(space, s, start, end):
     """Parse a number and check for overflows"""
     result = 0