[Numpy-tickets] [NumPy] #908: Infinite loop in loadtxt of empty file

NumPy numpy-tickets@scipy....
Tue Sep 9 06:29:43 CDT 2008


#908: Infinite loop in loadtxt of empty file
--------------------+-------------------------------------------------------
 Reporter:  pv      |        Owner:  somebody
     Type:  defect  |       Status:  new     
 Priority:  normal  |    Milestone:  1.3.0   
Component:  Other   |      Version:  none    
 Severity:  normal  |   Resolution:          
 Keywords:          |  
--------------------+-------------------------------------------------------
Comment (by pv):

 Apparently gets stuck here:
 {{{
     # Read until we find a line with some values, and use
     # it to estimate the number of columns, N.
     first_vals = None
 ->  while not first_vals:
 ->      first_line = fh.readline()
 ->      first_vals = split_line(first_line)
     N = len(usecols or first_vals)
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/908#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list