Was: Is this an Bug in python 2.3?? Reflective relational operators
balaji at email.arizona.edu
Sun Jun 13 01:38:07 CEST 2004
Thanks for your reply. I see that the PEP and the current docs
specify that __ge__ and __le__ are their own reflection.
Given that PEP 207 proposes rich comparison to handle cases
(brought upon by NumPy) where the objects returned should not be
assumed to be boolean, what is the argument for automatic reflection?
Automatic reflection prevents the resulting objects from being
dependant on the ordering of the arguments to __ge__ and __le__. In
our application, this ordering is important.
Can anyone think of a way to get around automatic reflection of
More information about the Python-list