Message160594
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 |
|
Date |
User |
Action |
Args |
2012-05-14 05:05:59 | ned.deily | set | recipients:
+ ned.deily, eric.araujo, hynek, Paul.Upchurch |
2012-05-14 05:05:59 | ned.deily | set | messageid: <1336971959.48.0.418686107628.issue14794@psf.upfronthosting.co.za> |
2012-05-14 05:05:58 | ned.deily | link | issue14794 messages |
2012-05-14 05:05:58 | ned.deily | create | |
|