[Numpy-tickets] [NumPy] #353: Creating 0-dim arrays from an empty scalar fails
NumPy
numpy-tickets at scipy.net
Wed Oct 18 12:58:46 CDT 2006
#353: Creating 0-dim arrays from an empty scalar fails
--------------------+-------------------------------------------------------
Reporter: faltet | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version: devel
Severity: minor | Keywords:
--------------------+-------------------------------------------------------
Hi,
I don't know if this is related with ticket:331, but I think the next
should be a bug:
{{{
In [71]:"" == numpy.string_("")
Out[71]:True
In [72]:numpy.array("")
Out[72]:
array('',
dtype='|S1')
# so far so good, but...
In [73]:numpy.array(numpy.string_(""))
---------------------------------------------------------------------------
exceptions.ValueError Traceback (most
recent call last)
/home/faltet/<ipython console>
ValueError: Empty data-type
}}}
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/353>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list