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 4ebaae8 commit f59c7f8Copy full SHA for f59c7f8
Doc/reference/datamodel.rst
@@ -2950,6 +2950,14 @@ are awaitable.
2950
:term:`awaitable` objects. For instance, :class:`asyncio.Future` implements
2951
this method to be compatible with the :keyword:`await` expression.
2952
2953
+ .. note::
2954
+
2955
+ The language doesn't place any restriction on the type or value of the
2956
+ objects yielded by the iterator returned by ``__await__``, as this is
2957
+ specific to the implementation of the asynchronous execution framework
2958
+ (e.g. :mod:`asyncio`) that will be managing the :term:`awaitable` object.
2959
2960
2961
.. versionadded:: 3.5
2962
2963
.. seealso:: :pep:`492` for additional information about awaitable objects.
0 commit comments