__init__.py
changeset 9990 c84ad981fc4a
parent 9891 3386fd89c914
parent 9984 793377697c81
child 10045 0a49d61c8cca
equal deleted inserted replaced
9974:b240b33c7125 9990:c84ad981fc4a
   121         return binary
   121         return binary
   122 
   122 
   123     def __eq__(self, other):
   123     def __eq__(self, other):
   124         if not isinstance(other, Binary):
   124         if not isinstance(other, Binary):
   125             return False
   125             return False
   126         return self.getvalue(), other.getvalue()
   126         return self.getvalue() == other.getvalue()
   127 
   127 
   128 
   128 
   129     # Binary helpers to store/fetch python objects
   129     # Binary helpers to store/fetch python objects
   130 
   130 
   131     @classmethod
   131     @classmethod