[Numpy-tickets] [NumPy] #270: array creation from a list containing "objects" fails.
NumPy
numpy-tickets at scipy.net
Thu Aug 31 13:33:49 CDT 2006
#270: array creation from a list containing "objects" fails.
------------------------+---------------------------------------------------
Reporter: charris208 | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.core | Version: devel
Severity: normal | Keywords:
------------------------+---------------------------------------------------
In [2]: a = array([1,'A', None])
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most
recent call last)
/home/charris/<ipython console>
TypeError: expected a readable buffer object
In [3]: a = array([1,'A', None], dtype=object)
In [4]: a.shape
Out[4]: (3,)
Statement [2] should be the same as [3].
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/270>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list