Re: [Numpy-discussion] Tuples vs. lists when defining recarrays with array()

2009-06-07 Thread Robert Kern
On Sun, Jun 7, 2009 at 20:44, Fernando Perez wrote: > On Sun, Jun 7, 2009 at 4:31 PM, David Warde-Farley wrote: >> A question was raised on the #scipy IRC earlier today, about the >> behaviour of array() with structured dtypes. After some educated >> guessing I figured out that for record arrays, t

Re: [Numpy-discussion] Tuples vs. lists when defining recarrays with array()

2009-06-07 Thread Fernando Perez
On Sun, Jun 7, 2009 at 4:31 PM, David Warde-Farley wrote: > A question was raised on the #scipy IRC earlier today, about the > behaviour of array() with structured dtypes. After some educated > guessing I figured out that for record arrays, tuples (rather than > lists) must be used to indicate atom

[Numpy-discussion] Tuples vs. lists when defining recarrays with array()

2009-06-07 Thread David Warde-Farley
A question was raised on the #scipy IRC earlier today, about the behaviour of array() with structured dtypes. After some educated guessing I figured out that for record arrays, tuples (rather than lists) must be used to indicate atomic elements. What I wondered is whether this behaviour is