On Fri, Apr 22, 2011 at 6:32 PM, Mark Wiebe <mwwi...@gmail.com> wrote:

> I took a quick look at this issue and committed a fix. PyArray_FromString
> was doing a check to exclude object arrays, but that check was incorrect.
> Now it should appropriately raise an exception instead of creating an
> invalid array.
>
>
> https://github.com/numpy/numpy/commit/f75bfab3a2ab74ac82047f153a36c71c58fe3732
>
> -Mark
>

Thanks for the fix.

Now that line yields:

I[6]: k = np.fromstring(c.read(dt.itemsize), dt)[0]
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/home/gsever/Desktop/python-repo/numpy/<ipython console> in <module>()

ValueError: Cannot create an object array from a string


-- 
Gökhan
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to