[SciPy-dev] Check reading the nested fields of a nested array

Pearu Peterson pearu at scipy.org
Tue Apr 25 10:02:54 CDT 2006


Hi Travis,

Here's a small code that fails with current svn:

>>> from numpy import array
>>> Ndescr = [('Name','U8')]
>>> Nbuffer = [('NN',)]
>>> h = array(Nbuffer,dtype=Ndescr)
>>> h
array([(u'NN',)],
       dtype=[('Name', '<U8')])
>>> h['Name']
*** glibc detected *** free(): invalid next size (fast): 0x08224588 ***
Aborted

In addition, all other numpy/core test files run ok except
   test_unicode.py
   test_numerictypes.py

When I comment out the following lines in test_numerictypes.py

        assert_equal(h['info']['Name'],
                     array(self._buffer[3][0], dtype='U2'))

in read_values_nested.check_nested1_acessors method, all 
test_numerictypes.py tests succeed ok.

HTH,
Pearu




More information about the Scipy-dev mailing list