[Numpy-discussion] numpy.load and gzip file handles

Matthew Miller mattdm@mattdm....
Mon Feb 2 00:10:10 CST 2009

On Mon, Feb 02, 2009 at 08:01:54AM +0200, Stéfan van der Walt wrote:
> The GzipFile in Python 2.5 does not support the 2nd ("whence")
> argument.  The solution may be to use this wrapper from the EffBot:
> http://effbot.org/librarybook/gzip-example-2.py
> In order to "back-port" that functionality.

Unless I'm misunderstanding, even with the wrapper one can't actually seek
backwards, which is what the numpy code wants to do.

In the meantime, I'm just using numpy.lib.format.read_array() directly.

Matthew Miller           mattdm@mattdm.org          <http://mattdm.org/>

More information about the Numpy-discussion mailing list