Elegant ways to support equivalence ("equality") in Python classes - Stack Overflow - 0 views
-
mixin class
-
Another issue with the __dict__ comparison is what if you have an attribute that you don't want to consider in your definition of equality (say for example a unique object id, or metadata like a time created stamp).
-
isinstance sucks
- ...4 more annotations...