This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients gvanrossum, ncoghlan, yselivanov
Date 2015-07-23.18:28:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437676090.02.0.713682625572.issue24697@psf.upfronthosting.co.za>
In-reply-to
Content
> What problem does this solve?

Only avoiding confusion, because coroutines now have a separate type, lack __iter__, and thus are quite different (on the surface) from generators. The fact that 'coro.send(..)' raises StopIteration (when coroutines aren't iterable), and that 'coro.close()' raises GeneratorExit might be confusing and non-obvious to some users.

FWIW I created this ticket mostly as a reminder for myself to have some discussion on this topic in the future, when 3.5 is released and we have some initial feedback on PEP 492 ideas.
History
Date User Action Args
2015-07-23 18:28:10yselivanovsetrecipients: + yselivanov, gvanrossum, ncoghlan
2015-07-23 18:28:10yselivanovsetmessageid: <1437676090.02.0.713682625572.issue24697@psf.upfronthosting.co.za>
2015-07-23 18:28:10yselivanovlinkissue24697 messages
2015-07-23 18:28:09yselivanovcreate