[Numpy-discussion] Setting numpy record array elements
Stefan van der Walt
Mon Aug 20 11:10:25 CDT 2007
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.col1 = 0 (This fails silently)
> 2. a.col1 = 0 (This works fine)
> I am using the latest svn version of numpy. Is this a bug? or is the
> first method supposed to fail? If it is supposed to fail should it
> fail silently?
This looks like a bug, since
a = 0
works fine. I'll take a closer look and make sure.
More information about the Numpy-discussion