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 acdfe2e commit b3f3c3dCopy full SHA for b3f3c3d
1 file changed
Doc/library/io.rst
@@ -728,6 +728,12 @@ than raw I/O does.
728
729
Return :class:`bytes` containing the entire contents of the buffer.
730
731
+ .. method:: peek(size=0, /)
732
+
733
+ .. versionadded:: 3.12
734
735
+ Return bytes from the current position onwards but without advancing the
736
+ position. The number of bytes returned may be less or more than requested.
737
738
.. method:: read1(size=-1, /)
739
0 commit comments