[Numpy-discussion] Bug or feature?

Konrad Hinsen konrad.hinsen@fastmail....
Tue Aug 23 01:28:27 CDT 2011

On 22 Aug 2011, at 14:50, Travis Oliphant wrote:

> This goes into the category of "feature".  Structured arrays use  
> tuples to indicate a record.   So, (only) when using structured  
> arrays as a dtype, there is a difference between lists and  
> tuples.    In this case, array sees the tuple and expects it to have  
> 2 elements to match the number of fields in 2.

Thanks, that sounds reasonable. But is this role of tuples in the  
creation of structured arrays documented anywhere? The documentation  
on structured arrays concentrates on specifying the dtype. All I could  
find about array construction is a few examples.


More information about the NumPy-Discussion mailing list