On Mon, Jan 12, 2015 at 7:23 PM, Alexander Belopolsky <[email protected]>
wrote:

>
> On Mon, Jan 12, 2015 at 8:48 PM, Charles R Harris <
> [email protected]> wrote:
> >  I've often fantasized getting rid of the long type altogether ;) So it
> isn't exactly intended, but there is a reason...
>
>
> It is also confusing that numpy has two constructors that produce 32-bit
> integers on 32-bit platforms and 64-bit integers on 64-bit platforms, but
> neither of these constructors is called "long".  Instead, they are called
> numpy.int_ and numpy.intp.
>

I'm pretty sure that numpy.int_ will produce a 32 bit type in Windows64 --
because a long on Windows64 is 32 bit (at least with the MS compiler).

Which sucks, I'm pretty amazed that python went with "platformlong" for
it's int, rather than "32 bit int" or "64 bit int". Sigh.

-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

[email protected]
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to