Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f55011f8
Commit
f55011f8
authored
Oct 12, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc for BlockingIOError and its alias in the io module
parent
442ee03d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
Doc/library/exceptions.rst
Doc/library/exceptions.rst
+9
-0
Doc/library/io.rst
Doc/library/io.rst
+2
-10
No files found.
Doc/library/exceptions.rst
View file @
f55011f8
...
...
@@ -396,6 +396,15 @@ depending on the system error code.
Corresponds to :c:data:`errno` ``EAGAIN``, ``EALREADY``,
``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
Raised when an operation on a child process failed.
...
...
Doc/library/io.rst
View file @
f55011f8
...
...
@@ -109,16 +109,8 @@ High-level Module Interface
.. exception:: BlockingIOError
Error raised when blocking would occur on a non-blocking stream. It inherits
:exc:`IOError`.
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.
This is a compatibility alias for the builtin :exc:`BlockingIOError`
exception.
.. exception:: UnsupportedOperation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment