how to overload operator "< <" (a < x < b)?
Benjamin Kaplan
benjamin.kaplan at case.edu
Fri Aug 7 08:50:52 EDT 2009
On Fri, Aug 7, 2009 at 8:00 AM, dmitrey<dmitrey.kroshko at scipy.org> wrote:
> hi all,
> is it possible to overload operator "< <"? (And other like this one,
> eg "<= <=", "> >", ">= >=")
> Any URL/example?
> Thank you in advance, D.
That isn't an operator at all. Python does not support compound
comparisons like that. You have to do "a > b and b > c".
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list