Author: Alex Gaynor <[email protected]>
Branch: dynamic-specialized-tuple
Changeset: r54087:eaefbf566c6f
Date: 2012-03-29 21:41 -0400
http://bitbucket.org/pypy/pypy/changeset/eaefbf566c6f/

Log:    Kill this optimization, it's bogus. It could, in theory work if
        neither shape has an object in it.

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
@@ -114,8 +114,6 @@
 
 @jit.look_inside_iff(tuple_unroll_condition)
 def eq__Tuple_Tuple(space, w_tuple1, w_tuple2):
-    if w_tuple1.tuplestorage.getshape() is not 
w_tuple2.tuplestorage.getshape():
-        return space.w_False
     if w_tuple1.length() != w_tuple2.length():
         return space.w_False
     for i in xrange(w_tuple1.length()):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to