MCPcopy Create free account
hub / github.com/FDio/vpp / __eq__

Method __eq__

test/vpp_object.py:39–44  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

37 return hash(self.object_id())
38
39 def __eq__(self, other) -> bool:
40 if not isinstance(other, self.__class__):
41 return NotImplemented
42 if other.object_id() == self.object_id():
43 return True
44 return False
45
46 # This can be removed when python2 support is dropped.
47 def __ne__(self, other):

Callers 1

__ne__Method · 0.95

Calls 1

object_idMethod · 0.95

Tested by

no test coverage detected