Message377168
The proposed addition (see attached PR) is the following note:
.. note::
The language doesn't place any restriction on the type or value of the objects
yielded by the iterator returned by :meth:`__await__`, as this is specific to
the implementation of the event loop that will be managing the :term:`awaitable`
object. In the case of :mod:`asyncio`, user code should always be using other
:term:`coroutines <coroutine>`, :mod:`asyncio` Tasks, Futures, and other
:mod:`asyncio` objects to implement :meth:`__await__`, yielding objects from
these, and never yielding objects directly—as the kind of objects that the event
loop expects are considered a private implementation detail of :mod:`asyncio`. |
|
Date |
User |
Action |
Args |
2020-09-19 15:27:49 | plammens | set | recipients:
+ plammens, docs@python |
2020-09-19 15:27:49 | plammens | set | messageid: <1600529269.68.0.839974277875.issue41813@roundup.psfhosted.org> |
2020-09-19 15:27:49 | plammens | link | issue41813 messages |
2020-09-19 15:27:49 | plammens | create | |
|