Re: [Numpy-discussion] record descriptors: trailing unused bytes

2006-09-18 Thread Martin Wiechert
On Monday 18 September 2006 20:46, Travis Oliphant wrote: > Martin Wiechert wrote: > > Hi list, > > > > does anybody know, if in C in the PyArray_Descr struct it is safe to > > manually change descr->elsize and descr->alignment as long as these are > > compatible and descr->elsize is large enough t

Re: [Numpy-discussion] record descriptors: trailing unused bytes

2006-09-18 Thread Travis Oliphant
Martin Wiechert wrote: > Hi list, > > does anybody know, if in C in the PyArray_Descr struct it is safe to manually > change descr->elsize and descr->alignment as long as these are compatible and > descr->elsize is large enough to hold all fields? Of course I mean before any > array is construct

[Numpy-discussion] record descriptors: trailing unused bytes

2006-09-17 Thread Martin Wiechert
Hi list, does anybody know, if in C in the PyArray_Descr struct it is safe to manually change descr->elsize and descr->alignment as long as these are compatible and descr->elsize is large enough to hold all fields? Of course I mean before any array is constructed using descr. Thanks, Martin.