We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9948c8 commit 69ddb4fCopy full SHA for 69ddb4f
1 file changed
Doc/library/io.rst
@@ -730,10 +730,9 @@ than raw I/O does.
730
731
.. method:: peek(size=1, /)
732
733
- Return bytes from the current position onwards but without advancing the
734
- position. If the size argument is less than one or larger than the number
735
- of available bytes, a copy of the buffer from the current position until
736
- the end is returned.
+ Return bytes from the current position onwards without advancing the position.
+ If the size argument is less than one or larger than the number of available bytes,
+ a copy of the buffer from the current position until the end is returned.
737
Return an empty bytes object at EOF.
738
739
.. versionadded:: 3.13
0 commit comments