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 Paul.Upchurch
Recipients Paul.Upchurch
Date 2012-05-12.22:51:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336863098.54.0.753598684211.issue14794@psf.upfronthosting.co.za>
In-reply-to
Content
To reproduce the error:

Python 3.2.2 (default, Sep  5 2011, 22:09:30) 
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> slice(0,90000,None).indices(12600000000)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: cannot fit 'int' into an index-sized integer
>>> 

The correct behaviour is to return (0, 90000, 1).

>>> slice(0,90000,None).indices(600000000)
(0, 90000, 1)

This is related to http://bugs.python.org/issue1456470.
History
Date User Action Args
2012-05-12 22:51:38Paul.Upchurchsetrecipients: + Paul.Upchurch
2012-05-12 22:51:38Paul.Upchurchsetmessageid: <1336863098.54.0.753598684211.issue14794@psf.upfronthosting.co.za>
2012-05-12 22:51:37Paul.Upchurchlinkissue14794 messages
2012-05-12 22:51:37Paul.Upchurchcreate