Author: Antonio Cuni <[email protected]>
Branch: int_w-refactor
Changeset: r69459:d40701cd789e
Date: 2014-02-26 11:12 +0100
http://bitbucket.org/pypy/pypy/changeset/d40701cd789e/
Log: given the previous ifs this is not strictily necessary, however I
think that putting an explicit allow_conversion=False makes things
clearer
diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py
--- a/pypy/objspace/std/intobject.py
+++ b/pypy/objspace/std/intobject.py
@@ -42,7 +42,8 @@
return False
if self.user_overridden_class or w_other.user_overridden_class:
return self is w_other
- return space.int_w(self) == space.int_w(w_other)
+ return (space.int_w(self, allow_conversion=False) ==
+ space.int_w(w_other, allow_conversion=False))
def immutable_unique_id(self, space):
if self.user_overridden_class:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit