Skip to content

Commit 4d832e0

Browse files
committed
More it more explicit that size is ignored
1 parent 5733d5a commit 4d832e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ than raw I/O does.
774774
At least one byte of data is returned if not at EOF.
775775
Return an empty :class:`bytes` object at EOF.
776776
At most one single read on the underlying raw stream is done to satisfy the call.
777-
The exact number of bytes returned is unspecified
778-
(*size* is ignored).
777+
The *size* argument is ignored.
778+
The number of read bytes depends on the buffer size and the current position in the internal buffer.
779779

780780
.. method:: read(size=-1, /)
781781

0 commit comments

Comments
 (0)