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

Method __eq__

Solutions/9_2/structly/structure.py:34–35  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected