Skip to content

Commit 25125f2

Browse files
cmaloneyvstinner
andauthored
Apply suggestions from code review
Co-authored-by: Victor Stinner <[email protected]>
1 parent 2457b63 commit 25125f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,8 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16671667
The *buffer* should be mutable and :term:`bytes-like <bytes-like object>`. On
16681668
success, returns the number of bytes read. Less bytes may be read than the
16691669
size of the buffer. The underlying system call will be retried when
1670-
interrupted by a signal. Other errors will not be retried and an error will
1670+
interrupted by a signal, unless the signal handler raises an exception.
1671+
Other errors will not be retried and an error will
16711672
be raised.
16721673

16731674
Returns 0 if the fd is at end of file or if the provided buffer is

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11439,7 +11439,7 @@ os.readinto -> Py_ssize_t
1143911439
buffer: Py_buffer(accept={rwbuffer})
1144011440
/
1144111441
11442-
Read into a Buffer Protocol object from a file descriptor.
11442+
Read into a buffer object from a file descriptor.
1144311443
1144411444
The buffer should be mutable and bytes-like.
1144511445

0 commit comments

Comments
 (0)