Was: Is this an Bug in python 2.3?? Reflective relational operators
Balaji
balaji at email.arizona.edu
Sat Jun 12 19:38:07 EDT 2004
Dear Jeff,
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
relational operators?
TIA,
Balaji.
More information about the Python-list
mailing list