Issue1603312

classification
Title: subclasses of int raise a TypeError when given large value
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: cgroves, fwierzbicki
Priority: normal Keywords:

Created on 2006-11-26.18:55:25 by cgroves, last changed 2006-11-27.15:08:12 by cgroves.

Files
File name Uploaded Description Edit Remove
ints.py cgroves, 2006-11-26.18:55:26 simple example with error
Messages
msg1292 (view) Author: Charlie Groves (cgroves) Date: 2006-11-26.18:55:25
A subclass of int constructed with a value larger than sys.maxint raise a TypeError about a string being poorly formatted.  It should be an overflow error as a regular int does.  This causes ints in test_descr to fail.  See PyInteger.java#int_new
msg1293 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2006-11-26.20:27:08
I did the initial implementation of the int/long unifications, so I'll take a look at this bug.  Hopefully it'll be a quick fix.
msg1294 (view) Author: Charlie Groves (cgroves) Date: 2006-11-27.15:08:12
Fix in r2993 looks good.
History
Date User Action Args
2006-11-26 18:55:25cgrovescreate