On Fri, Apr 22, 2011 at 6:32 PM, Mark Wiebe <mwwiebe@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/f75bfab3a2ab74ac82047f153a36c71c58fe37...
-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