(original) (raw)
On Thu, Sep 8, 2016 at 9:39 AM, Random832 <random832@fastmail.com> wrote:
import numpy as np
In \[9\]: arr = np.array(\[1,2,3\])
Out\[10\]: array(\[1, 2, 3\])
In \[11\]: arr.dtype
Out\[11\]: dtype('int64')
You're talking about changing Py\_ssize\_t, right?
wouldn't that be the pointer size?
Is there a "long" in there anywhere in the integer implementation?
My example is this:
on OS-X, py3.5:
In \[9\]: arr = np.array(\[1,2,3\])
Out\[10\]: array(\[1, 2, 3\])
In \[11\]: arr.dtype
Out\[11\]: dtype('int64')
I don't have py3 running on win64 anywhere right now, but in win64 py2, that would give you:
dtype('int32')
as it's a "long" under the hood
(and I'm pretty sure that is not because of numpy code itself, but rather how Cpython is written/compiled)
Does py3 already use int64?
-CHB
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov