__cmp__ between dissimilar objects
Gabriel Genellina
gagsl-py at yahoo.com.ar
Tue Nov 14 14:34:56 EST 2006
At Tuesday 14/11/2006 13:41, insyte at gmail.com wrote:
> > 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...
PEP 207
http://www.python.org/dev/peps/pep-0207/
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Python-list
mailing list