We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
object.__await__
1 parent 3ab7b61 commit 504aa92Copy full SHA for 504aa92
Doc/reference/datamodel.rst
@@ -2879,6 +2879,14 @@ are awaitable.
2879
:term:`awaitable` objects. For instance, :class:`asyncio.Future` implements
2880
this method to be compatible with the :keyword:`await` expression.
2881
2882
+ .. note::
2883
+
2884
+ The language doesn't place any restriction on the type or value of the
2885
+ objects yielded by the iterator returned by ``__await__``, as this is
2886
+ specific to the implementation of the asynchronous execution framework
2887
+ (e.g. :mod:`asyncio`) that will be managing the :term:`awaitable` object.
2888
2889
2890
.. versionadded:: 3.5
2891
2892
.. seealso:: :pep:`492` for additional information about awaitable objects.
0 commit comments