[Numpy-discussion] bug in fromiter - with patch

Russel Howe russel@appliedminds....
Fri Sep 26 19:33:40 CDT 2008

As of SVN from this morning, fromiter cannot create an array whose dtype 
is a byte type

In [1]: np.fromiter(range(10), dtype='b')
MemoryError                               Traceback (most recent call last)

/Users/baxter/<ipython console> in <module>()

MemoryError: cannot allocate array memory

I am not sure how to include a test whose failure condition is the 
raising of an exception, but the patch includes the above test.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fromiter.patch
Url: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080926/e2c82151/attachment.pl 

More information about the Numpy-discussion mailing list