[Numpy-discussion] Strange behaviour of numpy.asarray() in corner case

Friedrich Romstedt friedrichromstedt at gmail.com
Mon Jan 31 21:32:29 EST 2011


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?  Shall I file a ticket?

Friedrich



More information about the NumPy-Discussion mailing list