示例#1
0
 def __eq__(self, other):
     return self.isHashable() and isinstance(other, Contract) and \
             self.conId == other.conId \
             or Object.__eq__(self, other)
示例#2
0
 def __eq__(self, other):
     return (self.conId and isinstance(other, Contract) and
             (self.conId == other.conId) or Object.__eq__(self, other))