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

Matthew Miller mattdm at mattdm.org
Mon Feb 2 01:10:10 EST 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 at mattdm.org          <http://mattdm.org/>



More information about the NumPy-Discussion mailing list