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/2003-February/033060.html below:

[Python-Dev] Negated hex/oct constants (SF #660455)

[Python-Dev] Negated hex/oct constants (SF #660455) [Python-Dev] Negated hex/oct constants (SF #660455)Tim Peters tim_one@email.msn.com
Wed, 5 Feb 2003 21:56:51 -0500
Ooh!  We can't blame this one on the peephole opt, right?  In current CVS:

>>> -int("0xffffffff", 0) # and this does not generate a wng
1
>>> int("-0xffffffff", 0)
-4294967295L
>>>

As in the tail end of the last msg, the base specifier makes a big
difference here too:

>>> -int("ffffffff", 16)
-4294967295L
>>> int("-ffffffff", 16)
-4294967295L
>>>




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