[NumPy-Tickets] [NumPy] #1730: asarray() with misshaped argument
NumPy Trac
numpy-tickets@scipy....
Sat Apr 2 13:55:32 CDT 2011
#1730: asarray() with misshaped argument
-------------------------------+--------------------------------------------
Reporter: friedrichromstedt | Owner: somebody
Type: defect | Status: new
Priority: low | Milestone: 2.0.0
Component: numpy.core | Version: 1.5.0
Keywords: asarray |
-------------------------------+--------------------------------------------
Comment(by rgommers):
A clearer example of what is going on here:
{{{
In [46]: np.array([[1, 3], 2])
Out[46]: array([[1, 3], 2], dtype=object)
In [47]: np.array([1, [1, 2]])
<snip>
ValueError: setting an array element with a sequence.
}}}
The second case should also give an object array.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1730#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list