[Numpy-tickets] [NumPy] #333: Creating an array from a n-dim dtype type fails
NumPy
numpy-tickets at scipy.net
Wed Oct 11 13:49:44 CDT 2006
#333: Creating an array from a n-dim dtype type fails
------------------------+---------------------------------------------------
Reporter: faltet | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.core | Version: devel
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by oliphant):
The type attribute of the data-type object is the Python object that is
created when you get an item from the array. In this case you would get a
2-element array, so perhaps one could argue that a 2-element array object
should be returned from the type attribute. But, such a thing does not
exist and so the generic array scalar is returned. It's not optimal,
perhaps, but it seems like a prudent decision for now.
Error messages are always a work in progress. They are tricky because
it's hard to now why and when an exception will occur and the error
message is usually propagated from a lower level.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/333#comment:2>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list