[NumPy-Tickets] [NumPy] #2029: Should not allow views of NA-masked arrays which change the array size
NumPy Trac
numpy-tickets@scipy....
Thu Feb 23 14:50:00 CST 2012
#2029: Should not allow views of NA-masked arrays which change the array size
------------------------+---------------------------------------------------
Reporter: mwiebe | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone: 1.7.0
Component: numpy.core | Version: devel
Keywords: |
------------------------+---------------------------------------------------
Comment(by mwiebe):
Here's an example:
{{{
a = np.arange(3, maskna=True)
# This array has two things now, 3 int32s, and 3 corresponding mask
elements
b = a.view(np.int16)
# This array has 6 int16s, but is supposed to share the 3 corresponding
mask elements
# Right now it operates as if there are 6 elements, allowing
reading/writing
# of invalid memory.
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2029#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list