[Python-checkins] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269 (#105468)

iritkatriel webhook-mailer at python.org
Wed Jun 7 18:30:40 EDT 2023


https://github.com/python/cpython/commit/acf3916e84158308660ed07c474a564e045d6884
commit: acf3916e84158308660ed07c474a564e045d6884
branch: 3.11
author: Federico Caselli <CaselIT at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2023-06-07T23:30:33+01:00
summary:

[3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269  (#105468)

files:
M Doc/reference/expressions.rst

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index f669d9718a496..ce9ff7f2208a8 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -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



More information about the Python-checkins mailing list