[pypy-commit] pypy default: (agaynor, fijal) bah fix translation
fijal
noreply at buildbot.pypy.org
Mon Mar 12 22:54:33 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r53362:f189a843a70c
Date: 2012-03-12 14:52 -0700
http://bitbucket.org/pypy/pypy/changeset/f189a843a70c/
Log: (agaynor, fijal) bah fix translation
diff --git a/pypy/objspace/std/tupleobject.py b/pypy/objspace/std/tupleobject.py
--- a/pypy/objspace/std/tupleobject.py
+++ b/pypy/objspace/std/tupleobject.py
@@ -120,8 +120,8 @@
def tuple_unroll_condition(space, w_tuple1, w_tuple2):
lgt1 = len(w_tuple1.wrappeditems)
lgt2 = len(w_tuple2.wrappeditems)
- return ((jit.is_constant(lgt1) and lgt1 <= UNROLL_TUPLE_LIMIT) or
- (jit.is_constant(lgt2) and lgt2 <= UNROLL_TUPLE_LIMIT))
+ return ((jit.isconstant(lgt1) and lgt1 <= UNROLL_TUPLE_LIMIT) or
+ (jit.isconstant(lgt2) and lgt2 <= UNROLL_TUPLE_LIMIT))
@jit.look_inside_iff(tuple_unroll_condition)
def eq__Tuple_Tuple(space, w_tuple1, w_tuple2):
@@ -176,7 +176,7 @@
return space.wrap(hash_tuple(space, w_tuple.wrappeditems))
@jit.look_inside_iff(lambda space, wrappeditems:
- jit.is_constant(len(wrappeditems)) and
+ jit.isconstant(len(wrappeditems)) and
len(wrappeditems) < UNROLL_TUPLE_LIMIT)
def hash_tuple(space, wrappeditems):
# this is the CPython 2.4 algorithm (changed from 2.3)
More information about the pypy-commit
mailing list