[NumPy-Tickets] [NumPy] #1879: bug of numpy.ndarray.ndim
NumPy Trac
numpy-tickets@scipy....
Sat Jun 25 14:08:23 CDT 2011
#1879: bug of numpy.ndarray.ndim
-------------------------+--------------------------------------------------
Reporter: coneagoe | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: 1.6.0
Resolution: invalid | Keywords: ndim dtype
-------------------------+--------------------------------------------------
Changes (by pv):
* status: new => closed
* resolution: => invalid
Comment:
That is how it is supposed to work -- in the first case you pass in a list
of 3 objects, in the second case you pass in a single object (not a list
of objects). Thus, you get a scalar, i.e., 0-dimensional array.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1879#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list