GMPY compare warning

Duncan Smith buzzard at
Sat Nov 29 15:50:30 CET 2003

"Mensanator" <mensanator at aol.compost> wrote in message
news:20031129001740.25982.00001230 at
> In the program that follows, I get the following warning message:
> RuntimeWarning: tp_compare didn't return -1, 0 or 1
>   while b>1:
> In this case, b is a gmpy.mpz number. The program operates as it should,
> which I guess is why it's a warning. Is there some reason why I shouldn't
> use gmpy numbers with relational operators? Is this warning something
> that can safely be ignored?

might help?


More information about the Python-list mailing list