mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
update peek documentation to implementation
This commit is contained in:
parent
3d8827dab6
commit
2a8b54d29c
1 changed files with 3 additions and 5 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue