Message247227
> 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. |
|
Date |
User |
Action |
Args |
2015-07-23 18:28:10 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, ncoghlan |
2015-07-23 18:28:10 | yselivanov | set | messageid: <1437676090.02.0.713682625572.issue24697@psf.upfronthosting.co.za> |
2015-07-23 18:28:10 | yselivanov | link | issue24697 messages |
2015-07-23 18:28:09 | yselivanov | create | |
|