__cmp__ between dissimilar objects

insyte at gmail.com insyte at gmail.com
Tue Nov 14 11:41:11 EST 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__
methods...

-Ben




More information about the Python-list mailing list