예제 #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)