[Numpy-tickets] [NumPy] #505: fromfile does not work with files opened with gzip

NumPy numpy-tickets@scipy....
Tue Apr 24 13:40:33 CDT 2007


#505: fromfile does not work with files opened with gzip
------------------------+---------------------------------------------------
 Reporter:  mesmith     |       Owner:  somebody     
     Type:  defect      |      Status:  new          
 Priority:  normal      |   Milestone:               
Component:  numpy.core  |     Version:  none         
 Severity:  normal      |    Keywords:  fromfile gzip
------------------------+---------------------------------------------------
 I would like to use fromfile with a file opened with the gzip module

          fp = gzip.open(filename,'r')
          arraybuffer = fromfile(fp, sep=',')

 but this gives an error

 IOError: first argument must be an open file

 I found a similar problem at

 http://projects.scipy.org/astropy/pyfits/ticket/7

 Has this problem been addressed in numpy? I am using version 1.0rc1.

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


More information about the Numpy-tickets mailing list