Open smintz opened 1 year ago
When comparing objects (==/!=/</> etc). The object needs to look for the correct functions (__eq__/__ne__ etc). And if not available to delegate to the super instance. If the super instance is empty, we need to return an indicative error.
==
!=
<
>
__eq__
__ne__
see: https://docs.python.org/3/reference/datamodel.html#object.__lt__
When comparing objects (
==
/!=
/<
/>
etc). The object needs to look for the correct functions (__eq__
/__ne__
etc). And if not available to delegate to the super instance. If the super instance is empty, we need to return an indicative error.