Is negative seek() from EOF of a GzipFile supported on Python 2.5.2 ?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sun Jan 11 23:24:03 EST 2009
En Sun, 11 Jan 2009 08:12:27 -0200, Barak, Ron <Ron.Barak at lsi.com>
escribió:
> I googled a bit, and found http://bugs.python.org/issue1355023.
> It seems that this patch implemented fuller seek() for GzipFile around
> November 2006 (including whence==2).
> Do I misunderstand and this patch was not actually implemented, namely,
> is seek(-n,2) not implemented in Python 2.5.2 ?
>
> The source of gzip.py on my system seems to suggest that negative seeks
> are supported:
The source comments are misleading: "negative seeks" means seeking
backwards (towards the beginning of the file), not offset<0.
The second argument to seek (whence) was added in 2.6, and only accepts 0
or 1; whence==2 isn't supported.
--
Gabriel Genellina
More information about the Python-list
mailing list