strange behavior of the comparison operator

Hernan M. Foffani hfoffani at yahoo.com
Wed Aug 29 16:01:10 EDT 2001


Nicolas Evrard <nicoe at wanadoo.be> wrote:
> the definition of __comp__ I've done :
>
>     def __comp__(self, other) :

Your __comp__ method is not being called.
It's __cmp__ not comp!
BTW, complex numbers are builtin in Python.

Regards,
-Hernan

-- 
-------------------- http://NewsReader.Com/ --------------------
                    Usenet Newsgroup Service



More information about the Python-list mailing list