On Sun, Nov 26, 2017 at 11:23 PM, Caleb Hattingh
<caleb.hatti...@gmail.com> wrote:
[..]
> I'd be very grateful if anyone can point out if my understanding of the
> above is incorrect.  Private email is fine if you prefer not to post to the
> list.

It is correct.  While 'yield from coro()', where 'coro()' is an 'async
def' coroutine would make sense in some contexts, it would require
coroutines to implement the iteration protocol.  That would mean that
you could write 'for x in coro()', which is meaningless for coroutines
in all contexts.  Therefore, coroutines do not implement the iterator
protocol.

Yury
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to