1.1 --- a/simplified.py Fri Jan 26 00:05:20 2007 +0100
1.2 +++ b/simplified.py Fri Jan 26 01:26:28 2007 +0100
1.3 @@ -476,7 +476,10 @@
1.4 def __eq__(self, other):
1.5 # NOTE: Single instance: all instances are the same
1.6 # NOTE: Multiple instances: all instances are different
1.7 - return self.full_name() == other.full_name()
1.8 + if hasattr(other, "full_name"):
1.9 + return self.full_name() == other.full_name()
1.10 + else:
1.11 + return NotImplemented
1.12
1.13 def __hash__(self):
1.14 return id(self)