micropython/common.py | raw changeset files shortlog |
1.1 --- a/micropython/common.py Wed May 02 01:03:55 2012 +0200 1.2 +++ b/micropython/common.py Mon May 07 20:46:43 2012 +0200 1.3 @@ -72,7 +72,9 @@ 1.4 # Set membership and comparisons. 1.5 1.6 def __hash__(self): 1.7 - return hash(tuple(self.keys())) 1.8 + l = self.keys() 1.9 + l.sort() 1.10 + return hash(tuple(l)) 1.11 1.12 def __eq__(self, other): 1.13 if hasattr(other, "objects"):