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 dea91ab commit 7c4ef7eCopy full SHA for 7c4ef7e
Doc/library/io.rst
@@ -592,11 +592,10 @@ I/O Base Classes
592
593
.. method:: read1(size=-1, /)
594
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.
+ Read and return up to *size* bytes, calilng :meth:`~raw.readinto`,
+ retrying if :py:const:`~errno.EINTR` is encountered per :pep:`475`. If
+ *size* is ``-1`` or not provided, the implementation will choose an
+ arbitrary value for *size*.
600
601
.. note::
602
0 commit comments