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

Alexander Belopolsky ndarray at mac.com
Mon Jan 12 22:23:22 EST 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150112/2ba21ec9/attachment.html>


More information about the NumPy-Discussion mailing list