From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 5 Jul 2023 11:19:01 +0000 (-0700) Subject: [3.8] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh... X-Git-Tag: v3.8.18~7 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=db42de40002cf769903ae055f24f57c1cb2a9540;p=thirdparty%2FPython%2Fcpython.git [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 --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 0ac45995aef9..d5b34379e2b5 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