[pypy-svn] r74454 - pypy/trunk/pypy/rpython

benjamin at codespeak.net benjamin at codespeak.net
Mon May 10 04:33:06 CEST 2010


Author: benjamin
Date: Mon May 10 04:33:04 2010
New Revision: 74454

Modified:
   pypy/trunk/pypy/rpython/annlowlevel.py
Log:
compare classes with is not ==

Modified: pypy/trunk/pypy/rpython/annlowlevel.py
==============================================================================
--- pypy/trunk/pypy/rpython/annlowlevel.py	(original)
+++ pypy/trunk/pypy/rpython/annlowlevel.py	Mon May 10 04:33:04 2010
@@ -17,7 +17,7 @@
     def __init__(self, val):
         self.val = val
     def __eq__(self, other):
-        return self.__class__ == other.__class__ and self.val == other.val
+        return self.__class__ is other.__class__ and self.val == other.val
     def __ne__(self, other):
         return not (self == other)
     def __hash__(self):



More information about the Pypy-commit mailing list