Trouble with max() and __cmp__()
"Martin v. Löwis"
martin at v.loewis.de
Sun Jan 28 17:05:59 EST 2007
More information about the Python-list mailing list
Sun Jan 28 17:05:59 EST 2007
- Previous message (by thread): Trouble with max() and __cmp__()
- Next message (by thread): New internet services from MSN Yahoo! and Google are here
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Nelson schrieb: > On Jan 28, 3:13 pm, Wojciech Muła > <wojciech_m... at poczta.null.onet.pl.invalid> 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
- Previous message (by thread): Trouble with max() and __cmp__()
- Next message (by thread): New internet services from MSN Yahoo! and Google are here
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list