Was: Is this an Bug in python 2.3?? Reflective relational operators

Balaji balaji at email.arizona.edu
Thu Jun 17 00:30:47 CEST 2004

Dear Dan,

What I'm trying to do in my application is preserve the order in which
the user wrote an expression.

If a user writes e1=100>=x, python treats it as e1= x<=100. Both are
same mathematically but semantically they are not. If a user prints
this expression he will get e1= x<=100, which is different than

In my application both the <= and >= have totally different meaning.
They are not just used for comparisson.



More information about the Python-list mailing list