[Numpy-discussion] Python 3 and isinstance(np.int64(42), int)

Sturla Molden sturla.molden at gmail.com
Thu Jun 18 07:55:46 EDT 2015


Nathaniel Smith <njs at pobox.com> wrote:

> In py3,
> 'int' is an arbitrary width integer bignum, like py2 'long', which is
> fundamentally different from int32 and int64 in both semantics and
> implementation.

Only when stored in an ndarray.

An array scalar object does not need to care about the exact number of bits
used for storage as long as the storage is large enough, which a python int
always is.


Sturla




More information about the NumPy-Discussion mailing list