Re: [Numpy-discussion] Setting numpy record array elements

2007-08-20 Thread Stefan van der Walt
Hi Sameer On Mon, Aug 20, 2007 at 06:26:30PM -0500, Sameer DCosta wrote: > On 8/20/07, Stefan van der Walt <[EMAIL PROTECTED]> wrote: > Thanks Stefan for offering to take a closer look. I have attached a > patch against the latest svn which fixes this problem. Yup, right on the money. The __seta

Re: [Numpy-discussion] Setting numpy record array elements

2007-08-20 Thread Sameer DCosta
On 8/20/07, Stefan van der Walt <[EMAIL PROTECTED]> wrote: > > This looks like a bug, since > > a[0][0] = 0 > > works fine. I'll take a closer look and make sure. > Thanks Stefan for offering to take a closer look. I have attached a patch against the latest svn which fixes this problem. Both thi

Re: [Numpy-discussion] Setting numpy record array elements

2007-08-20 Thread Stefan van der Walt
On Mon, Aug 20, 2007 at 08:34:53AM -0500, Sameer DCosta wrote: > In the example below I have a record array *a* that has a column > *col1". I am trying to set the first element of a.col1 to zero in two > different ways. > > 1. a[0].col1 = 0 (This fails silently) > 2. a.col1[0] = 0 (This works fin

[Numpy-discussion] Setting numpy record array elements

2007-08-20 Thread Sameer DCosta
Hi, In the example below I have a record array *a* that has a column *col1". I am trying to set the first element of a.col1 to zero in two different ways. 1. a[0].col1 = 0 (This fails silently) 2. a.col1[0] = 0 (This works fine) I am using the latest svn version of numpy. Is this a bug? or is t