[Numpy-discussion] PyArray_DescrConverter - alignment/ trailingunused bytes

Albert Strasheim fullung at gmail.com
Fri Sep 15 14:16:59 EDT 2006


Argh

> > <snip>
> 
> > One final question. To me the repr of a dtype with gaps is a little bit
> > puzzling:
> >
> > >>> dtype ({'names': ['a', 'b', 'c'], 'formats': ['<a4', '<f8', '<f4'],
> > 'offsets': [0, 16, 24]})
> > dtype([('a', '|S4'), ('', '|V12'), ('b', '<f8'), ('', '|V12'), ('c',
> > '<f4')])
> >
> > There should be no gap between "b" and "c" but still the repr has ('',
> > '|V12')
> > between them. Am I missing something?

I see you're not specifying align=True here. Ignore my last message.

Cheers,

Albert





More information about the NumPy-Discussion mailing list