summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-05 11:18:49 (GMT)
committerGitHub <noreply@github.com>2023-07-05 11:18:49 (GMT)
commitce93371488b0fcd942567c2ee43f7d2e13e597fb (patch)
treedf175f02bb9a3d34122f82468591e9999f1a35fc
parent1528b420b33ae5c636b6016ce6c6afb0b09e7694 (diff)
downloadcpython-ce93371488b0fcd942567c2ee43f7d2e13e597fb.zip
cpython-ce93371488b0fcd942567c2ee43f7d2e13e597fb.tar.gz
cpython-ce93371488b0fcd942567c2ee43f7d2e13e597fb.tar.bz2
[3.9] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269 (GH-105468) (#105477)
(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 9f6f6f7..d877b61 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -725,7 +725,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