Update doc for BlockingIOError and its alias in the io module
This commit is contained in:
parent
442ee03d35
commit
f55011f8b6
|
@ -396,6 +396,15 @@ depending on the system error code.
|
||||||
Corresponds to :c:data:`errno` ``EAGAIN``, ``EALREADY``,
|
Corresponds to :c:data:`errno` ``EAGAIN``, ``EALREADY``,
|
||||||
``EWOULDBLOCK`` and ``EINPROGRESS``.
|
``EWOULDBLOCK`` and ``EINPROGRESS``.
|
||||||
|
|
||||||
|
In addition to those of :exc:`OSError`, :exc:`BlockingIOError` can have
|
||||||
|
one more attribute:
|
||||||
|
|
||||||
|
.. attribute:: characters_written
|
||||||
|
|
||||||
|
An integer containing the number of characters written to the stream
|
||||||
|
before it blocked. This attribute is available when using the
|
||||||
|
buffered I/O classes from the :mod:`io` module.
|
||||||
|
|
||||||
.. exception:: ChildProcessError
|
.. exception:: ChildProcessError
|
||||||
|
|
||||||
Raised when an operation on a child process failed.
|
Raised when an operation on a child process failed.
|
||||||
|
|
|
@ -109,16 +109,8 @@ High-level Module Interface
|
||||||
|
|
||||||
.. exception:: BlockingIOError
|
.. exception:: BlockingIOError
|
||||||
|
|
||||||
Error raised when blocking would occur on a non-blocking stream. It inherits
|
This is a compatibility alias for the builtin :exc:`BlockingIOError`
|
||||||
:exc:`IOError`.
|
exception.
|
||||||
|
|
||||||
In addition to those of :exc:`IOError`, :exc:`BlockingIOError` has one
|
|
||||||
attribute:
|
|
||||||
|
|
||||||
.. attribute:: characters_written
|
|
||||||
|
|
||||||
An integer containing the number of characters written to the stream
|
|
||||||
before it blocked.
|
|
||||||
|
|
||||||
|
|
||||||
.. exception:: UnsupportedOperation
|
.. exception:: UnsupportedOperation
|
||||||
|
|
Loading…
Reference in New Issue