[Numpy-discussion] change default integer from int32 to int64 on win64?

Robert Kern robert.kern at gmail.com
Thu Jul 24 04:36:18 EDT 2014


On Thu, Jul 24, 2014 at 3:47 AM, Sturla Molden <sturla.molden at gmail.com> wrote:
> Julian Taylor <jtaylor.debian at googlemail.com> wrote:
>
>> The default integer dtype should be sufficiently large to index into any
>> numpy array, thats what I call an API here. win64 behaves different, you
>> have to explicitly upcast your index to be able to index all memory.
>
> No, you don't have to manually upcast Python int to Python long.
>
> Python 2 will automatically create a Python long if you overflow a Python
> int.
>
> On Python 3 the Python int does not have a size limit.

Please reread the thread more carefully. That's not what this
discussion is about.

-- 
Robert Kern



More information about the NumPy-Discussion mailing list