[Numpy-tickets] [NumPy] #354: Possible inconsistency in 0-dim and scalar empty array types
NumPy
numpy-tickets at scipy.net
Wed Oct 18 13:09:31 CDT 2006
#354: Possible inconsistency in 0-dim and scalar empty array types
--------------------+-------------------------------------------------------
Reporter: faltet | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version: devel
Severity: minor | Keywords:
--------------------+-------------------------------------------------------
Do you think that the next is inconsistent?
{{{
In [79]:numpy.array("").dtype
Out[79]:dtype('|S1')
In [80]:numpy.array("")[()].dtype
Out[80]:dtype('|S0')
In [81]:numpy.string_("").dtype
Out[81]:dtype('|S0')
}}}
I'd tend to think that it is.
Regards
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/354>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list