A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-June/045312.html below:

[Python-Dev] Int/long future warning (again)

[Python-Dev] Int/long future warning (again) [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4