[Python-Dev] Int/long future warning (again)
Bob Ippolito
bob at redivi.com
Wed Jun 9 17:19:19 EDT 2004
On Jun 9, 2004, at 5:09 PM, Nick Bastin wrote:
> Not to dredge up a thread from 1.5 years ago, but I guess I will.. :-)
>
> Did anyone actually implement a __future__ import or SOMETHING to
> disable the annoying "FutureWarning: hex/oct constants > sys.maxint
> will return positive values in Python 2.4 and up". There was some
> discussion that there should be a way to suppress this message before
> 2.3 went out the door, but I don't see any indications on the mailing
> list (or in the code) that there's any way to suppress the message.
>>> import warnings
>>> warnings.filterwarnings('ignore', category=FutureWarning)
>>> 0xffffffff
-1
-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20040609/8c19770c/smime.bin
More information about the Python-Dev
mailing list