aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-05 04:19:01 -0700
committerGitHub <noreply@github.com>2023-07-05 13:19:01 +0200
commitdb42de40002cf769903ae055f24f57c1cb2a9540 (patch)
tree87e12af50e04eda2eeac6323238c283ea7050ee8
parent40ea37ddae465d7046e2a6b8d9fd80c27f8b2da6 (diff)
downloadcpython3-db42de40002cf769903ae055f24f57c1cb2a9540.tar.gz
[3.8] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269 (GH-105468) (#105478)
(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 0ac45995ae..d5b34379e2 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -710,7 +710,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