[docs] [issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

Martin Panter report at bugs.python.org
Sat Jan 10 05:26:53 CET 2015

Martin Panter added the comment:

Here is a simple documentation patch to guarantee that at least one byte is normally returned. This would make the method much more useful, and compatible with the BZ2File and LZMAFile interfaces, allowing them to use BufferedReader, as I propose to do in Issue 15955.

Even if nobody is interested in Torsten’s patch to limit the return length, I suggest my patch be considered :)

assignee:  -> docs at python
components: +Documentation
nosy: +docs at python
Added file: http://bugs.python.org/file37661/peek-one-byte.patch

Python tracker <report at bugs.python.org>

More information about the docs mailing list