<p dir="ltr">On 9 Sep 2013 15:50, <<a href="mailto:josef.pktd@gmail.com">josef.pktd@gmail.com</a>> wrote:<br>
><br>
> On Mon, Sep 9, 2013 at 9:52 AM, Nathaniel Smith <<a href="mailto:njs@pobox.com">njs@pobox.com</a>> wrote:<br>
> > One list has 6 entries and one has 7, so they can't be aligned into a single<br>
> > array. Possibly it would be better to raise an error here instead of<br>
> > returning an object array, but that's what's going on.<br>
><br>
> It did at some point (and I relied on the exception to catch bugs,<br>
> since I'm still using mainly numpy 1.5)<br>
><br>
> >>> f1 = [[15.207, 15.266, 15.181, 15.189, 15.215, 15.198], [-45, -57, -62, -70, -72, -73.5, -77]]<br>
> >>> np.array(f1)<br>
> Traceback (most recent call last):<br>
> File "<stdin>", line 1, in <module><br>
> ValueError: setting an array element with a sequence.<br>
> >>> np.__version__<br>
> '1.5.1'<br>
><br>
> now we get object arrays (in scipy.stats, and I didn't know what to do<br>
> with them)<br>
><br>
> I don't remember any discussion on this.</p>
<p dir="ltr">There may not have been any.</p>
<p dir="ltr">Feel free to submit a PR and we can argue about which way is better... (I also prefer the 1.5 approach personally.)</p>
<p dir="ltr">-n</p>