This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: int ("ffffffd3", 16) gives error
Type: Stage:
Components: None Versions: Python 2.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: gaul, nbecker
Priority: normal Keywords:

Created on 2003-09-24 16:44 by nbecker, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Messages (2)
msg18324 - (view) Author: Neal D. Becker (nbecker) Date: 2003-09-24 16:44
Subject says it all.  This should not give an error 
on a machine that uses 32-bit 2's complement 
representation for int. 
msg18325 - (view) Author: Andrew Gaul (gaul) Date: 2003-10-02 01:17
Logged In: YES 
user_id=139865

ints in Python 2.2 on a 32 bit machine can only hold values
from -(2 ** 31) to (2 ** 31) - 1.  int() will not return a
negative number without a minus sign, the opposite of what
hex literals do.  In Python 2.3, int('ffffffd3', 16) returns
4294967251L. In Python 2.4, 0xffffffd3 will mean
4294967251L.  See PEP 237 for more information.

Mark as invalid.
History
Date User Action Args
2022-04-10 16:11:20adminsetgithub: 39290
2003-09-24 16:44:03nbeckercreate