This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients madison.may, nadeem.vawda, nbargnesi, r.david.murray, serhiy.storchaka
Date 2013-07-12.22:25:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373667904.76.0.828660871661.issue18430@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-07-12 22:25:04serhiy.storchakasetrecipients: + serhiy.storchaka, nadeem.vawda, r.david.murray, madison.may, nbargnesi
2013-07-12 22:25:04serhiy.storchakasetmessageid: <1373667904.76.0.828660871661.issue18430@psf.upfronthosting.co.za>
2013-07-12 22:25:04serhiy.storchakalinkissue18430 messages
2013-07-12 22:25:04serhiy.storchakacreate