From: Benjamin Peterson Date: Sun, 14 Jun 2009 14:37:23 +0000 (+0000) Subject: update peek documentation to implementation X-Git-Tag: v3.1~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a8b54d29cc943e7b8bc493d5500463b0e0af5ff;p=python update peek documentation to implementation --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 26285b4fcd..67a8d4d85d 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -504,11 +504,9 @@ Buffered Streams .. method:: peek([n]) - Return 1 (or *n* if specified) bytes from a buffer without advancing the - position. Only a single read on the raw stream is done to satisfy the - call. The number of bytes returned may be less than requested since at - most all the buffer's bytes from the current position to the end are - returned. + Return bytes from the stream without advancing the position. Only a + single read on the raw stream is done to satisfy the call. The number of + bytes returned may be less or more than requested. .. method:: read([n])