8000 [3.11] Add single value `agen.athrow(value)` signature to the 3.11 do… · python/cpython@e710647 · GitHub
[go: up one dir, main page]

Skip to content

Commit e710647

Browse files
CaselITmiss-islington
authored andcommitted
[3.11] Add single value agen.athrow(value) signature to the 3.11 docs gh-105269 (GH-105468)
(cherry picked from commit acf3916) Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
1 parent 1528b42 commit e710647

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/reference/expressions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,8 @@ which are used to control the execution of a generator function.
725725
because there is no yield expression that could receive the value.
726726

727727

728-
.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
728+
.. coroutinemethod:: agen.athrow(value)
729+
agen.athrow(type[, value[, traceback]])
729730

730731
Returns an awaitable that raises an exception of type ``type`` at the point
731732
where the asynchronous generator was paused, and returns the next value

0 commit comments

Comments
 (0)
0