diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-02-13 22:59:05 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-02-13 22:59:05 (GMT) |
commit | 77c96813ab8007ffe720c47761f44d786683a190 (patch) | |
tree | 93c5ee0a73153e1ecdbde88010a8ef80d7bc72b5 /Doc/reference | |
parent | b2a2aa7664e1cef014ebba5e4207552ac15b943c (diff) | |
download | cpython-77c96813ab8007ffe720c47761f44d786683a190.zip cpython-77c96813ab8007ffe720c47761f44d786683a190.tar.gz cpython-77c96813ab8007ffe720c47761f44d786683a190.tar.bz2 |
Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 764c491..cf0f069 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``, |