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 50a2cfb commit eaa7672Copy full SHA for eaa7672
1 file changed
Doc/library/io.rst
@@ -739,6 +739,12 @@ than raw I/O does.
739
740
Return :class:`bytes` containing the entire contents of the buffer.
741
742
+ .. method:: peek(size=0, /)
743
+
744
+ .. versionadded:: 3.12
745
746
+ Return bytes from the current position onwards but without advancing the
747
+ position. The number of bytes returned may be less or more than requested.
748
749
.. method:: read1(size=-1, /)
750
0 commit comments