[NumPy-Tickets] [NumPy] #1790: dtype(..., align=True) does not insert trailing padding
NumPy Trac
numpy-tickets@scipy....
Tue Jun 21 17:48:12 CDT 2011
#1790: dtype(..., align=True) does not insert trailing padding
------------------------+---------------------------------------------------
Reporter: pv | Owner: mwiebe
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.core | Version: devel
Keywords: |
------------------------+---------------------------------------------------
Changes (by mwiebe):
* owner: somebody => mwiebe
Comment:
The truth is actually worse, the different parsing methods are
inconsistent. From ticket #1619:
{{{
>>> t = np.dtype('i4, i1', align=True)
>>> t.itemsize
8
>>> t = np.dtype([('f0','i4'), ('f1','i1')], align=True)
>>> t.itemsize
5
}}}
I'm going to change it to always put in the trailing padding.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1790#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list