[NumPy-Tickets] [NumPy] #1508: isscalar doesn't handle ndarray's scalars
NumPy Trac
numpy-tickets@scipy....
Tue Jun 8 16:10:07 CDT 2010
#1508: isscalar doesn't handle ndarray's scalars
--------------------+-------------------------------------------------------
Reporter: pch | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: Other | Version:
Keywords: |
--------------------+-------------------------------------------------------
The following behaviour looks incoherent:
{{{
>>> a = array(1)
>>> print numpy.isscalar(a), numpy.rank(a)
False 0
}}}
Expected behaviour: isscalar(a) should return True
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1508>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list