On Thu, 19 Aug 2010 11:00:03 -0400, Alex Hall wrote: > def __eq__(self, obj): > if self.a==obj.a and self.b==obj.b: return True > return False That would be the same as: def __eq__(self, obj): return self.a==obj.a and self.b==obj.b -- Steven