[NumPy-Tickets] [NumPy] #1766: Nested recarray crashes numpy 1.5.x on Python 3.x
NumPy Trac
numpy-tickets@scipy....
Thu Mar 10 12:50:10 CST 2011
#1766: Nested recarray crashes numpy 1.5.x on Python 3.x
---------------------+------------------------------------------------------
Reporter: cgohlke | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.5.1
Keywords: |
---------------------+------------------------------------------------------
This issue was reported at <http://mail.scipy.org/pipermail/numpy-
discussion/2011-March/055269.html>.
The following code crashes with numpy 1.5.x on Windows using official or
self compiled binaries for Python 3.x:
{{{
import numpy
numpy.recarray((1,), [('i', [('j', 'i4')], 2)]).data
}}}
The code works correctly with numpy 1.5.x on Python 2.x and also with
numpy 1.6.0dev on Python 3.x.
The crash is during the 'data' attribute lookup. The 'i' attribute can be
accessed without crash, e.g. the following works:
{{{
numpy.recarray((1,), [('i', [('j', 'i4')], 2)]).i
numpy.recarray((1,), [('i', [('j', 'i4')], 2)]).i.j
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1766>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list