[NumPy-Tickets] [NumPy] #1597: loadtxt gets stuck on empty files
NumPy Trac
numpy-tickets@scipy....
Sun Sep 5 16:41:15 CDT 2010
#1597: loadtxt gets stuck on empty files
-------------------------+--------------------------------------------------
Reporter: ctmedra | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone: 1.3.0
Component: Other | Version: 1.2.1
Resolution: worksforme | Keywords: loadtxt
-------------------------+--------------------------------------------------
Changes (by pv):
* status: new => closed
* resolution: => worksforme
* milestone: 2.0.0 => 1.3.0
Comment:
Has been fixed since then:
{{{
>>> import numpy
>>> fp=open('foo.dat','w')
>>> fp.close()
>>> numpy.loadtxt('foo.dat')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/numpy/lib/io.py", line 456, in
loadtxt
raise IOError('End-of-file reached before encountering data.')
IOError: End-of-file reached before encountering data.
>>> numpy.__version__
'1.3.0'
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1597#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list