This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author plammens
Recipients docs@python, plammens
Date 2020-09-19.15:27:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600529269.68.0.839974277875.issue41813@roundup.psfhosted.org>
In-reply-to
Content
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`.
History
Date User Action Args
2020-09-19 15:27:49plammenssetrecipients: + plammens, docs@python
2020-09-19 15:27:49plammenssetmessageid: <1600529269.68.0.839974277875.issue41813@roundup.psfhosted.org>
2020-09-19 15:27:49plammenslinkissue41813 messages
2020-09-19 15:27:49plammenscreate