[Numpy-discussion] Using loadtxt() twice on same file freezes python
Thu Mar 26 16:02:28 CDT 2009
Thu, 26 Mar 2009 21:24:30 +0100, Sander de Kievit wrote:
> David Cournapeau wrote:
>> On Fri, Mar 27, 2009 at 1:14 AM, Sander de Kievit
>> <email@example.com> wrote:
>>> On my PC the following code freezes python:
>>> import numpy as np
>>> from StringIO import StringIO
>>> c = StringIO("0 1\n2 3")
>>> Is this intentional behaviour or should I report this as a bug?
>> Which version of numpy are you using (numpy.version.version), on which
>> OS ?
> The specifics for my platform:
> Fedora release 10 (Cambridge)
> kernel: 126.96.36.199-170.2.35.fc10.i686 #1 SMP python: 2.5.2
> numpy: 1.2.0
> Also, if I close the file in between the two calls it works without
> problem (if I use a real file, that is).
Could you test this with Numpy SVN version (or the 1.3 beta).
It's very likely the bug is this one:
and it has already been fixed.
More information about the Numpy-discussion