Skip to content

Commit 8ea45f3

Browse files
committed
Include characters_written in BlockingReader
1 parent 1c4a09c commit 8ea45f3

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
@@ -823,8 +823,8 @@ than raw I/O does.
823823

824824
Write the :term:`bytes-like object`, *b*, and return the
825825
number of bytes written. When in non-blocking mode, a
826-
:exc:`BlockingIOError` is raised if the buffer needs to be written out but
827-
the raw stream blocks.
826+
:exc:`BlockingIOError` with :attr:`BlockingIOError.characters_written` set
827+
is raised if the buffer needs to be written out but the raw stream blocks.
828828

829829

830830
.. class:: BufferedRandom(raw, buffer_size=DEFAULT_BUFFER_SIZE)

0 commit comments

Comments
 (0)