Are there any ways to add a simple implementations for __str__,__eq__,__repr__ to a class?
Basically I want an __eq__ to be just be whether all non prefixed instance variables are equal.
And a __str__/__repr__ that just names each variable and calls str/repr on each variable.
Is there a mechanism for this in the standard library?
You could define a
Defaultmixin: