TypeErrors

Christian Heimes lists at cheimes.de
Sun Mar 1 15:30:32 EST 2009


Benjamin Kaplan wrote:

> cmp(e, string) is actually just a shortcut for e.__cmp__(string).

FYI, cmp(e, string) does a lot more than just calling e.__cmp__(string).
Check out Objects/object.c:do_cmp()

Christian




More information about the Python-list mailing list