how to overload operator "< <" (a < x < b)?
benjamin.kaplan at case.edu
Fri Aug 7 14:50:52 CEST 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".
More information about the Python-list