示例#1
0
 def __eq__(self, other):
     if isinstance(other, str):
         return zframe.streq(self.frame, other)
     elif isinstance(other, Frame):
         return zframe.eq(self.frame, other.frame)
     return zframe.eq(self.frame, other)
示例#2
0
文件: types.py 项目: zeromq/pyczmq
 def __eq__(self, other):
     if isinstance(other, str):
         return zframe.streq(self.frame, other)
     elif isinstance(other, Frame):
         return zframe.eq(self.frame, other.frame)
     return zframe.eq(self.frame, other)