[Numpy-discussion] Strange behaviour of numpy.asarray() in corner case
Warren Weckesser
warren.weckesser at enthought.com
Mon Jan 31 22:04:48 EST 2011
On Mon, Jan 31, 2011 at 8:32 PM, Friedrich Romstedt <
friedrichromstedt at gmail.com> wrote:
> 2011/1/28 Friedrich Romstedt <friedrichromstedt at gmail.com>:
> >>>> numpy.asarray([X(), numpy.asarray([1, 1])]).shape
> > (2,)
> >>>> numpy.asarray([numpy.asarray([1, 1]), X()]).shape
> > ()
>
> Does noone have an opinion about this?
Looks wrong to me.
Shall I file a ticket?
>
Yes.
Warren
>
> Friedrich
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110131/a5e7762b/attachment.html>
More information about the NumPy-Discussion
mailing list