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 nadeem.vawda, serhiy.storchaka, vajrasky
Date 2014-03-06.10:31:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394101903.01.0.0367616303729.issue20856@psf.upfronthosting.co.za>
In-reply-to
Content
Because it is unspecified in io.BufferedReader.peek() and in many classes implemented the io.BufferedReader interface.

   .. method:: peek([size])

      Return bytes from the stream without advancing the position.  At most one
      single read on the raw stream is done to satisfy the call. The number of
      bytes returned may be less or more than requested.

I agree that this is weird, but this is a much larger issue than just bz2. We can't just "fix" this for bz2. This worths a discussion on Python-Dev.
History
Date User Action Args
2014-03-06 10:31:43serhiy.storchakasetrecipients: + serhiy.storchaka, nadeem.vawda, vajrasky
2014-03-06 10:31:43serhiy.storchakasetmessageid: <1394101903.01.0.0367616303729.issue20856@psf.upfronthosting.co.za>
2014-03-06 10:31:42serhiy.storchakalinkissue20856 messages
2014-03-06 10:31:42serhiy.storchakacreate