[Numpy-discussion] confusing recarray behaviour

Travis Oliphant oliphant.travis at ieee.org
Sat Apr 29 13:13:05 CDT 2006

Jonathan Taylor wrote:
> What I pass to N.array seems to agree with the examples in numpybook.
> Below is an example that does work for me (excuse the longish example 
> but it was just cut and paste to make my life easier). In my code, 
> funny things happen
> (see ipython excerpt below this). In particular, I have a list v with 
> v[0:2] = V and with the
> same dtype "ddesc" I get this exception when I change V to v[0:2].
Please show us what v is.

If I run v = V[:] and then try N.array(v[0:2],ddesc) I don't get any 
error.  So something else must be going on.

Which version are you running?


More information about the Numpy-discussion mailing list