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 1c4a09c commit 8ea45f3Copy full SHA for 8ea45f3
Doc/library/io.rst
@@ -823,8 +823,8 @@ than raw I/O does.
823
824
Write the :term:`bytes-like object`, *b*, and return the
825
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.
+ :exc:`BlockingIOError` with :attr:`BlockingIOError.characters_written` set
+ is raised if the buffer needs to be written out but the raw stream blocks.
828
829
830
.. class:: BufferedRandom(raw, buffer_size=DEFAULT_BUFFER_SIZE)
0 commit comments