summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-27 18:18:58 -0700
committerGitHub <noreply@github.com>2023-06-27 21:18:58 -0400
commit4970a1c0b382749a40e298fbfb278c7fbd8c7516 (patch)
treeca33d21f405b555f4923ae65f9fca993758276b2
parentPost 3.7.17 (diff)
downloadcpython-4970a1c0b382749a40e298fbfb278c7fbd8c7516.tar.gz
cpython-4970a1c0b382749a40e298fbfb278c7fbd8c7516.tar.bz2
cpython-4970a1c0b382749a40e298fbfb278c7fbd8c7516.zip
[3.7] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269 (GH-105468) (#105479)
(cherry picked from commit acf3916e84158308660ed07c474a564e045d6884) Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
-rw-r--r--Doc/reference/expressions.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 3c14fc98d00..7672c86867c 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -705,7 +705,8 @@ which are used to control the execution of a generator function.
because there is no yield expression that could receive the value.
-.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
+.. coroutinemethod:: agen.athrow(value)
+ agen.athrow(type[, value[, traceback]])
Returns an awaitable that raises an exception of type ``type`` at the point
where the asynchronous generator was paused, and returns the next value