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@python
components: +Documentation
nosy: +docs@python
Added file: http://bugs.python.org/file37661/peek-one-byte.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5811>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to