[Numpy-discussion] Setting numpy record array elements

Sameer DCosta sameerslists at gmail.com
Mon Aug 20 19:26:30 EDT 2007


On 8/20/07, Stefan van der Walt <stefan at sun.ac.za> 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 this patched version and the current subversion source do not
throw an AttributeError exception if you do something like

a[0].non_existent_column = 10

That is a different  problem that probably should be fixed.

Cheers,
Sameer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numpy_patch.svn.diff
Type: application/octet-stream
Size: 988 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070820/4d1be907/attachment.obj>


More information about the NumPy-Discussion mailing list