[Numpy-tickets] [NumPy] #307: Problems in creating recarrays coming from other arrays
NumPy
numpy-tickets at scipy.net
Mon Oct 2 11:36:35 CDT 2006
#307: Problems in creating recarrays coming from other arrays
------------------------+---------------------------------------------------
Reporter: faltet | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0 Release
Component: numpy.core | Version: devel
Severity: normal | Keywords:
------------------------+---------------------------------------------------
It seems that numpy cannot create recarrays from other numpy arrays:
{{{
>>> a=numpy.array([(1,3),(2,3)], dtype="i4,i4")
>>> a
array([(1, 3), (2, 3)],
dtype='[('f0', '<i4'), ('f1', '<i4')]')
>>> b=numpy.array([numpy.array([1,3]),numpy.array([2,3])], dtype="i4,i4")
>>> b
TypeError: expected a readable buffer object
}}}
In the same way, it should be nice to be able to put Numeric or numarray
objects and not only numpy.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/307>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list