From: Pierre GM <pgm...@gm...> - 2006-10-28 19:30:32
|
On Saturday 28 October 2006 14:28, Travis Oliphant wrote: > > Hmm.... I know that the code was changed at some point a few months ago > specifically to this behavior because of some concerns Perry, Chris > (people at STScI) had. Originally, field names came first, but we > changed it so they could set known attributes of a record array even if > they were also field names. So that I could have a field named 'shape', and modifying r.shape would change the shape of the array, not the content of the field ? That makes sense, but isn't it a bit dangerous ? Shouldn't we have a list of reserved keywords (dtype, shape...) that would raise an exception if used as field names ? |