how to overload operator "< <" (a < x < b)?

Diez B. Roggisch deets at nospam.web.de
Fri Aug 7 08:16:22 EDT 2009


dmitrey schrieb:
> hi all,
> is it possible to overload operator "<  <"? (And other like this one,
> eg "<=  <=", ">  >", ">=  >=")
> Any URL/example?
> Thank you in advance, D.

http://docs.python.org/reference/datamodel.html#object.__lt__

Diez



More information about the Python-list mailing list