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 b6ffca8 commit 5fe5645Copy full SHA for 5fe5645
Doc/library/io.rst
@@ -785,8 +785,9 @@ than raw I/O does.
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 exact number of bytes returned is unspecified
789
- (*size* is ignored). If the underlying raw
+ The *size* argument is ignored.
+ The number of read bytes depends on the buffer size and the current position in the internal buffer.
790
+ If the underlying raw
791
stream is non-blocking and the operation would block, returns empty bytes.
792
793
.. method:: read(size=-1, /)
0 commit comments