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

2011-01-31 Thread Friedrich Romstedt
2011/2/1 Warren Weckesser : >>  Shall I file a ticket? > > Yes. Ok, #1730: http://projects.scipy.org/numpy/ticket/1730. Thanks, Friedrich ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussio

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

2011-01-31 Thread Warren Weckesser
On Mon, Jan 31, 2011 at 8:32 PM, Friedrich Romstedt < friedrichromst...@gmail.com> wrote: > 2011/1/28 Friedrich Romstedt : > numpy.asarray([X(), numpy.asarray([1, 1])]).shape > > (2,) > numpy.asarray([numpy.asarray([1, 1]), X()]).shape > > () > > Does noone have an opinion about this?

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

2011-01-31 Thread Friedrich Romstedt
2011/1/28 Friedrich Romstedt : 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 ___ NumPy-Discussion mailin

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

2011-01-28 Thread Friedrich Romstedt
Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.__version__ '1.5.1' >>> class X: ... pass ... >>> numpy.asarray([X(), numpy.asarray([1, 1])]).shape (2