[Numpy-discussion] Equality of dtypes does not imply equality of type kinds

Sebastian Berg sebastian at sipsolutions.net
Tue Jan 13 01:20:50 EST 2015


On Tue Jan 13 04:23:22 2015 GMT+0100, Alexander Belopolsky wrote:
> On Mon, Jan 12, 2015 at 8:48 PM, Charles R Harris <charlesr.harris at gmail.com>
> wrote:
> >
> > That is to say, in this case C long has the same precision as C long
> long. That varies depending on the platform, which is one reason the
> precision nomenclature came in. It can be confusing, and 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.
>

There is np.long. int_ is python int which is long. intp is actually ssizet.

- Sebastian 


More information about the NumPy-Discussion mailing list