]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Jun 2023 01:18:58 +0000 (18:18 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2023 01:18:58 +0000 (21:18 -0400)
(cherry picked from commit acf3916e84158308660ed07c474a564e045d6884)

Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
Doc/reference/expressions.rst

index 3c14fc98d008024193c7f43e8043e3c95ea870eb..7672c86867c872cc4b5ac42bbfee8213d9996853 100644 (file)
@@ -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