[pypy-commit] pypy default: I knew that running a translation first was a good idea

cfbolz noreply at buildbot.pypy.org
Fri Nov 4 10:50:30 CET 2011

Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Changeset: r48738:54f86b92c275
Date: 2011-11-04 10:24 +0100

Log:	I knew that running a translation first was a good idea

diff --git a/pypy/objspace/std/stringobject.py b/pypy/objspace/std/stringobject.py
--- a/pypy/objspace/std/stringobject.py
+++ b/pypy/objspace/std/stringobject.py
@@ -4,7 +4,7 @@
 from pypy.interpreter.error import OperationError, operationerrfmt
 from pypy.interpreter import gateway
 from pypy.rlib.rarithmetic import ovfcheck
-from pypy.rlib.objectmodel import we_are_translated, compute_hash
+from pypy.rlib.objectmodel import we_are_translated, compute_hash, specialize
 from pypy.objspace.std.inttype import wrapint
 from pypy.objspace.std.sliceobject import W_SliceObject, normalize_simple_slice
 from pypy.objspace.std import slicetype, newformat
@@ -420,6 +420,7 @@
     return space.wrap(u_self)
+ at specialize.arg(4)
 def _convert_idx_params(space, w_self, w_start, w_end, upper_bound=False):
     self = w_self._value
     lenself = len(self)
@@ -427,7 +428,6 @@
     start, end = slicetype.unwrap_start_stop(
             space, lenself, w_start, w_end, upper_bound=upper_bound)
     return (self, start, end)
-_convert_idx_params._annspecialcase_ = 'specialize:arg(5)'
 def contains__String_String(space, w_self, w_sub):
     self = w_self._value

More information about the pypy-commit mailing list