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
a3c8ba72
Commit
a3c8ba72
authored
Sep 13, 2018
by
Carol Willing
Committed by
Yury Selivanov
Sep 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polish exceptions and platforms (GH-9272)
parent
01e0afa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Doc/library/asyncio-exceptions.rst
Doc/library/asyncio-exceptions.rst
+3
-2
Doc/library/asyncio-platforms.rst
Doc/library/asyncio-platforms.rst
+5
-4
No files found.
Doc/library/asyncio-exceptions.rst
View file @
a3c8ba72
...
...
@@ -19,11 +19,12 @@ Exceptions
The operation has been cancelled.
This exception can be caught to perform custom operations
on
This exception can be caught to perform custom operations
when asyncio Tasks are cancelled. In almost all situations the
exception must always be re-raised.
.. note::
This exception is a subclass of :exc:`Exception`, so it can be
accidentally suppressed by ``try..except`` block::
...
...
@@ -54,7 +55,7 @@ Exceptions
.. exception:: SendfileNotAvailableError
The "sendfile" syscall
for
is not available for the given
The "sendfile" syscall is not available for the given
socket or file type.
A subclass of :exc:`RuntimeError`.
...
...
Doc/library/asyncio-platforms.rst
View file @
a3c8ba72
...
...
@@ -9,7 +9,8 @@ Platforms Support
=================
The :mod:`asyncio` module has been designed to be portable,
but some platforms have subtle differences and limitations.
but some platforms have subtle differences and limitations
due to the platforms' underlying architecture and capabilities.
All Platforms
...
...
@@ -26,7 +27,7 @@ All event loops on Windows do not support the following methods:
* :meth:`loop.create_unix_connection` and
:meth:`loop.create_unix_server` are not supported.
The :data:`socket.AF_UNIX` socket family is specific to UNIX
/
The :data:`socket.AF_UNIX` socket family is specific to UNIX
.
* :meth:`loop.add_signal_handler` and
:meth:`loop.remove_signal_handler` are not supported.
...
...
@@ -66,8 +67,8 @@ Windows configuration.
Subprocess Support on Windows
-----------------------------
:class:`SelectorEventLoop` on Windows does not support subproceses
,
so
:class:`ProactorEventLoop` should be used instead::
:class:`SelectorEventLoop` on Windows does not support subproceses
.
On Windows,
:class:`ProactorEventLoop` should be used instead::
import asyncio
...
...
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