Help, how to override <= operator
Richard GRUET
rgruet at ina.fr
Wed May 19 06:15:59 EDT 1999
__cmp__(self, other)
should return a <0 integer if self < other, 0 if self == other, a
positive integer if self > other.
If no __cmp__() op is defined, class instances are compared by identity
(address).
Richard
Joseph Kuan a écrit :
> What's the function name for overriding the <= operator?
>
> Thanks a lot
> Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/19990519/b341ae2a/attachment.html>
More information about the Python-list
mailing list