[Numpy-discussion] numpy.asarray( iterator )

2008-02-04 Thread Sebastian Haase
Hi, Can this be changed: If I have a list L the usual N.asarray( L ) works well -- however I just discovered that N.asarray( reversed( L ) ) breaks my code Apparently reversed( L ) returns an iterator object, and N.asarray( reversed( L ) ) (called arrY in my function) results in: (Pdb) p

Re: [Numpy-discussion] numpy.asarray( iterator )

2008-02-04 Thread Timothy Hochberg
On Mon, Feb 4, 2008 at 6:56 AM, Sebastian Haase <[EMAIL PROTECTED]> wrote: > Hi, > > Can this be changed: > If I have a list L the usual N.asarray( L ) works well -- however I > just discovered that N.asarray( reversed( L ) ) breaks my code > > Apparently reversed( L ) returns an iterator ob