[Python-Dev] (some) C99 added to PEP 7
Chris Barker
chris.barker at noaa.gov
Thu Sep 8 16:01:08 EDT 2016
On Thu, Sep 8, 2016 at 9:39 AM, Random832 <random832 at fastmail.com> wrote:
> 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:
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')
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 at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160908/f46f2e67/attachment-0001.html>
More information about the Python-Dev
mailing list