Message212804
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. |
|
Date |
User |
Action |
Args |
2014-03-06 10:31:43 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, nadeem.vawda, vajrasky |
2014-03-06 10:31:43 | serhiy.storchaka | set | messageid: <1394101903.01.0.0367616303729.issue20856@psf.upfronthosting.co.za> |
2014-03-06 10:31:42 | serhiy.storchaka | link | issue20856 messages |
2014-03-06 10:31:42 | serhiy.storchaka | create | |
|