[issue28445] Wrong documentation for GzipFile.peek
Xiang Zhang
report at bugs.python.org
Fri Oct 14 13:46:47 EDT 2016
Xiang Zhang added the comment:
The "compressed stream" is not the underlying file object but _GzipReader. And actually the "at most one single reader" is the characteristic of io.BufferedReader.peek, you can see it in the doc. Maybe it needs multiple reads on the file object in a single peek, but they are all encapsulated in the _GzipReader.read. So at the point of GzipFile.peek, it's still a single read.
----------
nosy: +xiang.zhang
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28445>
_______________________________________
More information about the Python-bugs-list
mailing list