On Sat, Feb 20, 2016 at 6:48 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> As another point that happens to be fresh in my mind, awaiting a
> Future on which an exception gets set is supposed to propagate the
> exception. I recently found that this breaks if the exception in
> question happens to be StopIteration (granted not one that should
> generally be allowed to propagate anyway, but that's a separate
> discussion) for the simple reason that raising StopIteration in a
> generator is equivalent to returning None.

Solved by PEP 479. Use "from __future__ import generator_stop" to save
yourself the pain.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to