diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2013-12-08 18:47:22 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2013-12-08 18:47:22 (GMT) |
commit | 6976104a36aa426bcf23b2e4b7e7a706f25beeeb (patch) | |
tree | aff404b718a6a9fef4d205bf076862d5eee3c20e /Doc/library/lzma.rst | |
parent | 3e60a9d602c85b738dc74a3c8a196650822e8619 (diff) | |
download | cpython-6976104a36aa426bcf23b2e4b7e7a706f25beeeb.zip cpython-6976104a36aa426bcf23b2e4b7e7a706f25beeeb.tar.gz cpython-6976104a36aa426bcf23b2e4b7e7a706f25beeeb.tar.bz2 |
#18430: Document that peek() may change the position of the underlying file for
the BZ2File, GzipFile and LZMAFile classes.
Diffstat (limited to 'Doc/library/lzma.rst')
-rw-r--r-- | Doc/library/lzma.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/lzma.rst b/Doc/library/lzma.rst index da46575..07b69eb 100644 --- a/Doc/library/lzma.rst +++ b/Doc/library/lzma.rst @@ -98,6 +98,11 @@ Reading and writing compressed files byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). + .. note:: While calling :meth:`peek` does not change the file position of + the :class:`LZMAFile`, it may change the position of the underlying + file object (e.g. if the :class:`LZMAFile` was constructed by passing a + file object for *filename*). + Compressing and decompressing data in memory -------------------------------------------- |