Message58034
Range accepts arguments coerce-able into ints via __int__, but rejects
arguments coerce-able into longs but to large to fit into an int.
The problem is in handle_range_longs in bltinmodule.c:1527-1541. If they
type is not an int or long, it should try to make it so before failing
(for consistency with smaller values at least).
Attached is a file that reproduces this bug. |
| File name |
Uploaded |
|
bad_range.py
|
robertwb,
2007-12-01.00:28:09
|
|
| Date |
User |
Action |
Args |
| 2007-12-01 00:28:10 | robertwb | set | spambayes_score: 0.024279 -> 0.024279 recipients:
+ robertwb |
| 2007-12-01 00:28:10 | robertwb | set | spambayes_score: 0.024279 -> 0.024279 messageid: <1196468890.07.0.55666875231.issue1533@psf.upfronthosting.co.za> |
| 2007-12-01 00:28:10 | robertwb | link | issue1533 messages |
| 2007-12-01 00:28:09 | robertwb | create | |
|