Hi,
I noticed this works:
In [5]:a = array((1,), dtype=[('one', '<i4')])
In [6]:a.byteswap()
Out[6]:
array((16777216,),
dtype=[('one', '<i4')])
But, extending the recarray leads to a segfault on byteswapping:
In [8]:a = array((1, 2), dtype=[('one', '<i4'),('two', '<i4')])
In [9]:a.byteswap()
Segmentation fault
Thanks,
Matthew
|