def __eq__(self, other): return self.isHashable() and isinstance(other, Contract) and \ self.conId == other.conId \ or Object.__eq__(self, other)
def __eq__(self, other): return (self.conId and isinstance(other, Contract) and (self.conId == other.conId) or Object.__eq__(self, other))