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.

Author robertwb
Recipients robertwb
Date 2007-12-01.00:28:09
SpamBayes Score 0.024279023
Marked as misclassified No
Message-id <1196468890.07.0.55666875231.issue1533@psf.upfronthosting.co.za>
In-reply-to
Content
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.
Files
File name Uploaded
bad_range.py robertwb, 2007-12-01.00:28:09
History
Date User Action Args
2007-12-01 00:28:10robertwbsetspambayes_score: 0.024279 -> 0.024279023
recipients: + robertwb
2007-12-01 00:28:10robertwbsetspambayes_score: 0.024279 -> 0.024279
messageid: <1196468890.07.0.55666875231.issue1533@psf.upfronthosting.co.za>
2007-12-01 00:28:10robertwblinkissue1533 messages
2007-12-01 00:28:09robertwbcreate