(self, other)
| 113 | return Hash(self.serialize()) |
| 114 | |
| 115 | def __eq__(self, other): |
| 116 | if (not isinstance(other, self.__class__) and |
| 117 | not isinstance(self, other.__class__)): |
| 118 | return NotImplemented |
| 119 | return self.serialize() == other.serialize() |
| 120 | |
| 121 | def __ne__(self, other): |
| 122 | return not (self == other) |