[Numpy-discussion] bug in fromiter - with patch
Russel Howe
russel at appliedminds.com
Fri Sep 26 20:33:40 EDT 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.
Russel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fromiter.patch
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080926/e2c82151/attachment.ksh>
More information about the NumPy-Discussion
mailing list