File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -781,13 +781,8 @@ than raw I/O does.
781781
782782 .. method :: peek(size=0, /)
783783
784- Return bytes from the current position onwards without advancing the position.
785- At least one byte of data is returned if not at EOF.
786- Return an empty :class: `bytes ` object at EOF.
787- At most one single read on the underlying raw stream is done to satisfy the call.
788- The *size * argument is ignored.
789- The number of read bytes depends on the buffer size and the current position in the internal buffer.
790- If the underlying raw
784+ Return bytes from the stream without advancing the position. The number of
785+ bytes returned may be less or more than requested. If the underlying raw
791786 stream is non-blocking and the operation would block, returns empty bytes.
792787
793788 .. method :: read(size=-1, /)
You can’t perform that action at this time.
0 commit comments