Skip to content

Commit 7c4ef7e

Browse files
committed
in read1 refer to EINTR retrying
1 parent dea91ab commit 7c4ef7e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/library/io.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,10 @@ I/O Base Classes
592592

593593
.. method:: read1(size=-1, /)
594594

595-
Read and return up to *size* bytes, with at most one call to the
596-
underlying raw stream's :meth:`~RawIOBase.read` (or
597-
:meth:`~RawIOBase.readinto`) method. If *size* is ``-1`` or not provided,
598-
the implementation will decide a size to use and at most one call will be
599-
made.
595+
Read and return up to *size* bytes, calilng :meth:`~raw.readinto`,
596+
retrying if :py:const:`~errno.EINTR` is encountered per :pep:`475`. If
597+
*size* is ``-1`` or not provided, the implementation will choose an
598+
arbitrary value for *size*.
600599

601600
.. note::
602601

0 commit comments

Comments
 (0)