1.1 --- a/simplify/simplified/data.py Mon Jun 18 01:47:51 2007 +0200
1.2 +++ b/simplify/simplified/data.py Tue Jun 19 01:37:10 2007 +0200
1.3 @@ -99,6 +99,7 @@
1.4 except ValueError:
1.5 names_found.append(names)
1.6 instances_found.append(instance)
1.7 + instances[instance] = instance
1.8
1.9 return instances
1.10
1.11 @@ -263,9 +264,9 @@
1.12 return "Attribute(%s, %s)" % (repr(self.context), repr(self.type))
1.13
1.14 def __eq__(self, other):
1.15 - return hasattr(other, "type") and other.type == self.type or other == self.type
1.16 + return hasattr(other, "type") and other.type == self.type
1.17
1.18 def __hash__(self):
1.19 - return id(self.type)
1.20 + return hash(self.type)
1.21
1.22 # vim: tabstop=4 expandtab shiftwidth=4