No, the operators are applied to the attribute value (whether it is set by a property or taken from a map __dict__or slot), the attribute is never itself.
You will have to return a special shell that implements __eq__, and I will return it, I'm afraid.
source
share