En Sun, 11 Jan 2009 08:12:27 -0200, Barak, Ron <ron.ba...@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
--
http://mail.python.org/mailman/listinfo/python-list