[NumPy-Tickets] [NumPy] #1600: PyArray_DescrConverter inconsistency with empty arrays in records
NumPy Trac
numpy-tickets@scipy....
Thu Sep 2 06:30:35 CDT 2010
#1600: PyArray_DescrConverter inconsistency with empty arrays in records
------------------------+---------------------------------------------------
Reporter: steveb | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.core | Version:
Keywords: |
------------------------+---------------------------------------------------
When a record type is defined using a dictionary, dtype doesn't allow zero
length arrays.
{{{
np.dtype([('val1', np.float32, (0,))]) # OK
np.dtype({'names': ['val1'], 'formats':[(np.float32, (0,))]}) # Throws
TypeError
}}}
It isn't clear to me why they shouldn't be allowed in this case.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1600>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list