[NumPy-Tickets] [NumPy] #2200: Setting the itemsize of a dtype in dict-style constructor doesn't work
NumPy Trac
numpy-tickets@scipy....
Thu Aug 9 12:20:11 CDT 2012
#2200: Setting the itemsize of a dtype in dict-style constructor doesn't work
------------------------+---------------------------------------------------
Reporter: dpitch40 | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.7.0
Component: numpy.core | Version: devel
Keywords: |
------------------------+---------------------------------------------------
From a Python 2.7 console session:
>>> import numpy as np
>>> dt = np.dtype({"names": ["First"],
"formats": [np.uint32],
"offsets": [3],
"itemsize": 8})
>>> dt.itemsize
7
Obviously the actual itemsize of the dtype doesn't match the one I
specified. It appears to set the itemsize to the smallest one that
accommodates all of the elements of the type with their offsets. I am
using Numpy 1.6.2.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2200>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list