[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

Stefan Behnel report at bugs.python.org
Thu May 28 08:28:36 CEST 2015


Stefan Behnel added the comment:

BTW, given that "iter(iterator)" works and returns the iterator, should we also allow "await x.__await__()" to work? I guess that would be tricky to achieve given that __await__() is only required to return any kind of arbitrary Iterator, and Iterators cannot be awaited due to deliberate restrictions. But it might be nice to have for wrapping purposes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24017>
_______________________________________


More information about the Python-bugs-list mailing list