Thomas Nelson schrieb:
> On Jan 28, 3:13 pm, Wojciech Muła 
> <[EMAIL PROTECTED]> wrote:
>> Define method __gt__.
> 
> This works, thanks.  I was a little surprised though. is __cmp__ used 
> by any builtin functions?

It is used by max() if the object doesn't implement __gt__.

Regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to