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"):
2.1 --- a/micropython/data.py Wed May 02 01:03:55 2012 +0200
2.2 +++ b/micropython/data.py Mon May 07 20:46:43 2012 +0200
2.3 @@ -1114,7 +1114,7 @@
2.4 position = "at %r, " % self.position
2.5 else:
2.6 position = ""
2.7 - return "<%s.%s (%sassigned %r)>" % (
2.8 + return "<attribute %s.%s (%sassigned %r)>" % (
2.9 shortrepr(self.parent), self.name,
2.10 position, self.assignments
2.11 )