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. Konrad. _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
