TypeErrors

Christian Heimes lists at cheimes.de
Sun Mar 1 21:30:32 CET 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