Skip to content

Commit f514eaf

Browse files
committed
Fix errors.
1 parent bef00e0 commit f514eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peps/pep-9999.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ item. This comes with a few drawbacks:
118118
1. It obscures the intent of the code and increases the amount of effort
119119
necessary to work with asynchronous generators, because each delegation
120120
point becomes a loop. This damages the power of asynchronous generators.
121-
2. :meth:`~agend.asend`, :meth:`~agen.athrow`, and :meth:`~agen.aclose`,
121+
2. :meth:`~agen.asend`, :meth:`~agen.athrow`, and :meth:`~agen.aclose`,
122122
do not interact properly with the caller. This is the primary reason that
123123
``yield from`` was added in the first place.
124124
3. Return values are not natively supported with asynchronous generators. The
@@ -188,7 +188,7 @@ All subgenerator delegation semantics are retained.
188188

189189
1. :meth:`~object.__aiter__` is called to retrieve the asynchronous
190190
generator iterator.
191-
2. :meth:`~object.__asend__` is called to advance the asynchronous generator.
191+
2. :meth:`~agen.asend` is called to advance the asynchronous generator.
192192

193193
``async yield from`` is only allowed in an asynchronous generator function;
194194
using it elsewhere will raise a :exc:`SyntaxError`.

0 commit comments

Comments
 (0)