]> granicus.if.org Git - python/commit
Issue a warning when int('0...', 0) returns an int with the sign
authorGuido van Rossum <guido@python.org>
Wed, 12 Feb 2003 20:48:22 +0000 (20:48 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Feb 2003 20:48:22 +0000 (20:48 +0000)
commit47710656e53717b8369b72efcc486287f61bd69e
tree865a2fa565460d12a191b62daab1531f4403923e
parent3288f592cba8476faaa9412548be575df3f4d573
Issue a warning when int('0...', 0) returns an int with the sign
folded; this will change in Python 2.4.  On a 32-bit machine, this
happens for 0x80000000 through 0xffffffff, and for octal constants in
the same value range.  No warning is issued if an explicit base is
given, *or* if the string contains a sign (since in those cases no
sign folding ever happens).
Misc/NEWS
Objects/intobject.c