[Numpy-discussion] Proposal: Deprecate np.int, np.float, etc.?
Chris Barker
chris.barker at noaa.gov
Mon Aug 3 14:51:27 EDT 2015
On Mon, Aug 3, 2015 at 11:05 AM, Sturla Molden <sturla.molden at gmail.com>
wrote:
> On 03/08/15 18:25, Chris Barker wrote:
>
> > [NOTE: is there a C long dtype? I can't find it at the moment...]
>
> There is, it is called np.int.
well, IIUC, np.int is the python integer type, which is a C long in all
the implemtations of cPython that I know about -- but is that a guarantee?
in the future as well? For instance, if it were up to me, I'd use an
int_64_t on all 64 bit platforms, rather than having that odd 32 bit on
Windows, 64 bit on *nix silliness....
This just illustrates the problem...
So another minor proposal: add a numpy.longc type, which would be platform
C long. (and probably just an alias to something already there).
-Chris
--
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/numpy-discussion/attachments/20150803/6d72aaf0/attachment.html>
More information about the NumPy-Discussion
mailing list