How to get rid of "hex/oct constants > sys.maxint" warning?

Grant Edwards grante at visi.com
Wed Aug 11 18:09:29 CEST 2004


On 2004-08-11, Christopher T King <squirrel at WPI.EDU> wrote:

>> How _do_ I get rid of the warning?  Is there a way to tell
>> Python that the constant isn't an integer, it's just a bit
>> pattern?
>
> The best way is to tell Python to silence the warning:
>
>>>> 0xc0047a80
> FutureWarning
>>>> import warnings
>>>> warnings.simplefilter('ignore',FutureWarning)

Yup, that's what I was looking for.  Now that I know how it's
spelled, Google find's plenty of examples. :)


-- 
Grant Edwards                   grante             Yow!  Yow! Am I cleansed
                                  at               yet?!
                               visi.com            



More information about the Python-list mailing list