Message192979
A file can be non-seekable (pipe, socket) and we can't "unread" unused data back.
We can't implement GzipFile.peek() in terms of underlied file's peek() because peek() doesn't guaranteed return more than one byte, but it should return at least one byte if the file is not ended. We can't detect the end of compressed data without reading some data past the end of compressed data. |
|
Date |
User |
Action |
Args |
2013-07-12 22:25:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, nadeem.vawda, r.david.murray, madison.may, nbargnesi |
2013-07-12 22:25:04 | serhiy.storchaka | set | messageid: <1373667904.76.0.828660871661.issue18430@psf.upfronthosting.co.za> |
2013-07-12 22:25:04 | serhiy.storchaka | link | issue18430 messages |
2013-07-12 22:25:04 | serhiy.storchaka | create | |
|