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 
>Date: 11/29/2003 8:50 AM Central Standard Time
>Message-id: <bqabiu$h7a$1 at>
>"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?



Ace of Clubs

More information about the Python-list mailing list