GMPY compare warning

Duncan Smith 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?
>

http://sourceforge.net/tracker/index.php?func=detail&aid=472523&group_id=547
0&atid=305470

might help?

Duncan






More information about the Python-list mailing list