(self, other)
| 1245 | raise TypeError((self, other)) |
| 1246 | |
| 1247 | def __eq__(self, other): |
| 1248 | # type: (Any) -> bool |
| 1249 | if not isinstance(other, self.__class__): |
| 1250 | return False |
| 1251 | for f in self.fields_desc: |
| 1252 | if f not in other.fields_desc: |
| 1253 | return False |
| 1254 | if self.getfieldval(f.name) != other.getfieldval(f.name): |
| 1255 | return False |
| 1256 | return self.payload == other.payload |
| 1257 | |
| 1258 | def __ne__(self, other): |
| 1259 | # type: (Any) -> bool |