Re: [Numpy-discussion] Structured array inititialization weirdness

2009-06-20 Thread Francesc Alted
A Saturday 20 June 2009 19:04:03 Erik Tollerud escrigué: > I've encountered an odd error I don't understand (see the case below): > the first structured array ("A" in the example) initializes from a > list of length-2 arrays with no problem, but if I give it a 2-by-2 > array ("B"), it raises a Type

Re: [Numpy-discussion] Structured array inititialization weirdness

2009-06-20 Thread Stéfan van der Walt
Hi Erik 2009/6/20 Erik Tollerud : > I've encountered an odd error I don't understand (see the case below): > the first structured array ("A" in the example) initializes from a > list of length-2 arrays with no problem, but if I give it a 2-by-2 > array ("B"), it raises a TypeError... Why would it

[Numpy-discussion] Structured array inititialization weirdness

2009-06-20 Thread Erik Tollerud
I've encountered an odd error I don't understand (see the case below): the first structured array ("A" in the example) initializes from a list of length-2 arrays with no problem, but if I give it a 2-by-2 array ("B"), it raises a TypeError... Why would it be any different to convert the first index