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