MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __eq__

Method __eq__

Solutions/9_3/structly/structure.py:36–37  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

34 yield getattr(self, name)
35
36 def __eq__(self, other):
37 return isinstance(other, type(self)) and tuple(self) == tuple(other)
38
39 @classmethod
40 def from_row(cls, row):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected