On Fri, Apr 22, 2011 at 12:37 PM, Ralf Gommers <ralf.gomm...@googlemail.com>wrote:
> On Thu, Apr 21, 2011 at 10:06 PM, Gökhan Sever <gokhanse...@gmail.com> > wrote: > > Hello, > > Given this piece of code (I can provide the meg file off-the list for > those > > who wants to reproduce the error) > > Can you instead construct a test as simple as possible for this? It > sounds like you need only a two line string to reproduce this. The bug > sounds similar to http://projects.scipy.org/numpy/ticket/1689. > > Ralf This simple case segfaults as well (The commented line works correctly): import numpy as np from StringIO import StringIO c = StringIO(" hello \r\n world \r\n") dt = np.dtype([('line1', '|S6'), ('line2', np.object_)]) #dt = np.dtype([('line1', '|S9'), ('line2', '|S9')]) k = np.fromstring(c.read(dt.itemsize), dt)[0] -- Gökhan
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion