GMPY compare warning

Mensanator mensanator at aol.compost
Sat Nov 29 16:38:12 CET 2003


>Subject: Re: GMPY compare warning
>From: "Duncan Smith" buzzard at urubu.freeserve.co.uk 
>Date: 11/29/2003 8:50 AM Central Standard Time
>Message-id: <bqabiu$h7a$1 at news8.svr.pol.co.uk>
>
>
>"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?

Thanks. 

>
>Duncan


--
Mensanator
Ace of Clubs




More information about the Python-list mailing list