Author: Manuel Jacob
Branch: remove-tuple-smm
Changeset: r64450:16b0ec9cc99f
Date: 2013-05-22 14:59 +0200
http://bitbucket.org/pypy/pypy/changeset/16b0ec9cc99f/
Log: Simplify.
diff --git a/pypy/objspace/std/specialisedtupleobject.py
b/pypy/objspace/std/specialisedtupleobject.py
--- a/pypy/objspace/std/specialisedtupleobject.py
+++ b/pypy/objspace/std/specialisedtupleobject.py
@@ -82,11 +82,9 @@
for i in iter_n:
myval = getattr(self, 'value%s' % i)
otherval = w_other.getitem(space, i)
- if typetuple[i] == object:
- myval_wrapped = myval
- else:
- myval_wrapped = space.wrap(myval)
- if not space.eq_w(myval_wrapped, otherval):
+ if typetuple[i] != object:
+ myval = space.wrap(myval)
+ if not space.eq_w(myval, otherval):
return space.w_False
else:
return space.w_True
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit