]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269...
authorFederico Caselli <CaselIT@users.noreply.github.com>
Wed, 7 Jun 2023 22:30:33 +0000 (00:30 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 22:30:33 +0000 (23:30 +0100)
Doc/reference/expressions.rst

index f669d9718a4960cc36a7a577b273423e62f21833..ce9ff7f2208a8bc4a619f1a01fa1c08016ad3190 100644 (file)
@@ -740,7 +740,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