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 ned.deily
Recipients Paul.Upchurch, eric.araujo, hynek, ned.deily
Date 2012-05-14.05:05:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336971959.48.0.418686107628.issue14794@psf.upfronthosting.co.za>
In-reply-to
Content
The problem you described is definitely still an issue with 32-bit builds.

$ /usr/local/bin/python3.3
Python 3.3.0a3 (v3.3.0a3:0b53b70a40a0, May  1 2012, 11:39:35) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; sys.maxsize
9223372036854775807
>>> slice(0,90000,None).indices(12600000000)
(0, 90000, 1)
$ /usr/local/bin/python3.3-32
Python 3.3.0a3 (v3.3.0a3:0b53b70a40a0, May  1 2012, 11:39:35) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; print(sys.maxsize)
2147483647
>>> 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
History
Date User Action Args
2012-05-14 05:05:59ned.deilysetrecipients: + ned.deily, eric.araujo, hynek, Paul.Upchurch
2012-05-14 05:05:59ned.deilysetmessageid: <1336971959.48.0.418686107628.issue14794@psf.upfronthosting.co.za>
2012-05-14 05:05:58ned.deilylinkissue14794 messages
2012-05-14 05:05:58ned.deilycreate