[Numpy-tickets] [NumPy] #289: Array constructor for dtype "S" doesn't accept numpy arrays as input
NumPy
numpy-tickets at scipy.net
Fri Sep 22 13:02:57 CDT 2006
#289: Array constructor for dtype "S" doesn't accept numpy arrays as input
------------------------+---------------------------------------------------
Reporter: faltet | Owner: somebody
Type: defect | Status: new
Priority: low | Milestone:
Component: numpy.core | Version:
Severity: minor | Keywords:
------------------------+---------------------------------------------------
Hi,
I don't know if this is expected:
{{{
In [104]: numpy.array(["abc"], dtype="S")
Out[104]:
array([abc],
dtype='|S3')
}}}
so far so good, but:
{{{
In [105]: numpy.array(numpy.array(["abc"]), dtype="S")
---------------------------------------------------------------------------
<type 'exceptions.ValueError'> Traceback (most recent call
last)
/home/faltet/carabos/repositori/ceei/<ipython console> in <module>()
<type 'exceptions.ValueError'>: Empty data-type
}}}
I think the array constructor would allow a numpy array as input as well.
Thanks
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/289>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list