Message278660
| Author |
xiang.zhang |
| Recipients |
abacabadabacaba, docs@python, martin.panter, xiang.zhang |
| Date |
2016年10月14日.17:46:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1476467207.41.0.346252286194.issue28445@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|