Message 160594 - Python tracker (original) (raw)
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 "", line 1, in OverflowError: cannot fit 'int' into an index-sized integer