summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-05 10:07:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-05 10:07:14 (GMT)
commit7088b99eb8adfe16b5602bb7447d760915036a26 (patch)
treeaa68432b9c4c65bbe8bc1720ea4c4547dcebad44 /Doc
parentae0767bb5be2f6c4288f313eea7bcb529c9c0923 (diff)
parentf9e49dd346711dff6d4301a2edc0ca23f7f12b6f (diff)
downloadcpython-7088b99eb8adfe16b5602bb7447d760915036a26.zip
cpython-7088b99eb8adfe16b5602bb7447d760915036a26.tar.gz
cpython-7088b99eb8adfe16b5602bb7447d760915036a26.tar.bz2
(Merge 3.4) Tulip issue 83, Python issue #21252: Fill some XXX docstrings in asyncio
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-eventloop.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index d6dec10..44b80c8 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -64,19 +64,19 @@ An event loop policy must implement the following interface:
.. method:: get_event_loop()
- Get the event loop for current context. Returns an event loop object
- implementing :class:`BaseEventLoop` interface, or raises an exception in case
+ Get the event loop for the current context. Returns an event loop object
+ implementing the :class:`BaseEventLoop` interface, or raises an exception in case
no event loop has been set for the current context and the current policy
does not specify to create one. It should never return ``None``.
.. method:: set_event_loop(loop)
- Set the event loop of the current context to *loop*.
+ Set the event loop for the current context to *loop*.
.. method:: new_event_loop()
Create and return a new event loop object according to this policy's rules.
- If there's need to set this loop as the event loop of the current context,
+ If there's need to set this loop as the event loop for the current context,
:meth:`set_event_loop` must be called explicitly.
Access to the global loop policy