mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.9] [3.11] Add single value agen.athrow(value)
signature to the 3.11 docs gh-105269 (GH-105468) (#105477)
(cherry picked from commit acf3916e84
)
Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
This commit is contained in:
parent
1528b420b3
commit
ce93371488
1 changed files with 2 additions and 1 deletions
|
@ -725,7 +725,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue