[NumPy-Tickets] [NumPy] #1647: int32() different behaviour under 1.3.0 and 1.4.1 for single-element arrays
NumPy Trac
numpy-tickets@scipy....
Sun Oct 24 10:39:51 CDT 2010
#1647: int32() different behaviour under 1.3.0 and 1.4.1 for single-element arrays
-------------------------+--------------------------------------------------
Reporter: phaustus | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone: 2.0.0
Component: numpy.core | Version: 1.5.0
Resolution: duplicate | Keywords:
-------------------------+--------------------------------------------------
Changes (by pv):
* status: new => closed
* resolution: => duplicate
* component: Other => numpy.core
Comment:
I don't see that:
{{{
>>> import numpy as np; x=np.int32(np.array([0.])); print repr(x),
type(x), np.__version__
0 <type 'numpy.int32'> 1.3.0
}}}
OTOH, the types not inheriting from Python int behave differently
{{{
>>> import numpy as np; x=np.int64(np.array([0.])); print repr(x),
type(x), np.__version__
array([0], dtype=int64) <type 'numpy.ndarray'> 1.3.0
}}}
So I suspect you are running the different versions of Numpy on different
machines, one of which is 32-bit and the other 64-bit.
Duplicate of #764
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1647#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list