Marc Schlaich added the comment:

AFAIS this would break all existing code for yield-based coroutine schedulers 
(Tornado, Twisted, Trollius, monocle, ...) when a coroutine is exited with 
`raise StopIteration` in client code. 

And this seems like a lot, a quick GitHub code search gives various examples, 
e.g.

- 
https://github.com/circus-tent/circus-web/blob/3b76c83d1eb984a78ed69a9abcb13054cde78f89/circusweb/circushttpd.py#L170
- 
https://github.com/kzahel/falcon-api/blob/5c62454db971bc99c52694cf2ce0613fb1504d80/python/falcon_api/session.py#L159
- 
https://github.com/peterhajas/Genesis/blob/2f1a03c38934b892ee6bb04e07e867bf463b7ae5/servers/genesis/clients.py#L24

----------
nosy: +schlamar

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22906>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to