SilentGhost <ghost....@runbox.com> added the comment:

Within a generator function, StopIteration exception is a sign that generator 
is finished. This is why this exception is caught automatically, and closes 
generator. This is normal and documented behaviour of generators.

----------
nosy: +SilentGhost, sheiun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

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

Reply via email to