micropython/data.py | raw changeset files shortlog |
1.1 --- a/micropython/data.py Fri Jan 16 00:52:04 2009 +0100 1.2 +++ b/micropython/data.py Sat Jan 17 22:33:19 2009 +0100 1.3 @@ -349,7 +349,7 @@ 1.4 # Support constants as dictionary keys in order to build constant tables. 1.5 1.6 def __eq__(self, other): 1.7 - return self.value == other.value 1.8 + return self.value == other.value and self.value.__class__ is other.value.__class__ 1.9 1.10 def __hash__(self): 1.11 return hash(self.value)