Chris Angelico added the comment:

Ultimately, it's the exact same thing that PEP 479 is meant to deal with - 
raising StopIteration is functionally identical to returning. I don't use 
asyncio enough to be certain, but I'm not aware of any good reason to inject a 
StopIteration into it; maybe an alternative solution is to add a check in 
set_exception "if isinstance(exception, StopIteration): raise DontBeAFool"?

----------

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

Reply via email to