[issue18430] gzip, bz2, lzma: peek advances file position of existing file object

Nick Bargnesi report at bugs.python.org
Thu Jul 11 23:20:13 CEST 2013


Nick Bargnesi added the comment:

That's an improvement.

Using wording similar to the constructor's:

Calling a GzipFile object’s peek() method does not advance its position, but the fileobj may be affected. The caller may wish to save the fileobj position prior to calling peek() and resetting it upon return.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18430>
_______________________________________


More information about the Python-bugs-list mailing list