GMPY compare warning
buzzard at urubu.freeserve.co.uk
Sat Nov 29 15:50:30 CET 2003
"Mensanator" <mensanator at aol.compost> wrote in message
news:20031129001740.25982.00001230 at mb-m05.aol.com...
> In the program that follows, I get the following warning message:
> collatz_.py:37: 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?
More information about the Python-list