__cmp__ between dissimilar objects

insyte at gmail.com insyte at gmail.com
Tue Nov 14 17:41:11 CET 2006

> When the rich comparison methods raise NotImplementedError, the
> comparison logic inside the interpreter tries reversing the operands.

Can you point me to a description of this algorithm?  It doesn't seem
to be described in the documentation for the rich comparison or __cmp__


More information about the Python-list mailing list