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

Balaji balaji at email.arizona.edu
Wed Jun 16 18:30:47 EDT 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
e1=100<=x.

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

Regards

Balaji



More information about the Python-list mailing list