summaryrefslogtreecommitdiff
path: root/Doc/reference/datamodel.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-02-13 17:59:05 -0500
committerYury Selivanov <yselivanov@sprymix.com>2016-02-13 17:59:05 -0500
commit6a85ea79bd146d15bc2fa045617b6eafec7f3ccf (patch)
treeefc4ad2e15b78d8b82f0959e1f3334eab1112ea8 /Doc/reference/datamodel.rst
parent8d54102dac5aabcec92dd8e7ce44cd6361b672c3 (diff)
downloadcpython-6a85ea79bd146d15bc2fa045617b6eafec7f3ccf.tar.gz
Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r--Doc/reference/datamodel.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 764c4916d8..cf0f0698cc 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2316,6 +2316,10 @@ Coroutines also have the methods listed below, which are analogous to
those of generators (see :ref:`generator-methods`). However, unlike
generators, coroutines do not directly support iteration.
+.. versionchanged:: 3.5.2
+ It is a :exc:`RuntimeError` to await on a coroutine more than once.
+
+
.. method:: coroutine.send(value)
Starts or resumes execution of the coroutine. If *value* is ``None``,