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 26d1e81 commit 9a19ff9Copy full SHA for 9a19ff9
1 file changed
Doc/library/io.rst
@@ -741,10 +741,9 @@ than raw I/O does.
741
742
.. method:: peek(size=1, /)
743
744
- Return bytes from the current position onwards but without advancing the
745
- position. If the size argument is less than one or larger than the number
746
- of available bytes, a copy of the buffer from the current position until
747
- 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.
748
Return an empty bytes object at EOF.
749
750
.. versionadded:: 3.15
0 commit comments