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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24017>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to