In Basic Setup , python docs point to comparison methods:
[no versions of these methods]. rather, __lt__() and __gt__() are a reflection of each other, __le__() and __ge__() are a reflection of each other, and __eq__() and __ne__() are their own reflection.
I would be less surprised that __lt__() and __ge__() were a reflection of each other (as well as __le__() and __gt__() ).
The document also states:
... no other implied relationships between comparison operators, for example, true (x<y or x==y) does not imply x<=y ,
what, if anything, is or will be the rationale for the chosen reflection relationship?
source share