[Numpy-discussion] Structured array with no fields - possible?

David Cournapeau david at ar.media.kyoto-u.ac.jp
Sun May 3 02:22:02 EDT 2009


Hi Matthew,

Matthew Brett wrote:
> Hello,
>
> I'm trying to fix a bug in the scipy matlab loading routines, and this
> requires me to somehow represent an empty structured array.
>   

Do you need the struct to be empty (size is 0) or to have no fields ?
What would you expect np.zeros((), dtype=np.dtype([])) to return, for
example ?

cheers,

David



More information about the NumPy-Discussion mailing list