Stepan Wagner added the comment: OK, thanks for explanation.
The behaviour is still strange, because when I delete try...except clause from wrap, the StopIteration exc from emptygen terminates the program with traceback. On Tue, Dec 4, 2012 at 9:14 PM, R. David Murray <rep...@bugs.python.org>wrote: > > R. David Murray added the comment: > > I don't see the bug here. > > Your for loop calls wrap. Wrap calls emptygen. Emptygen raises a > StopIteration exception. That exception is of course propagated upward (it > isn't caught by wrap), and the loop stops. > > ---------- > nosy: +r.david.murray > resolution: -> invalid > stage: -> committed/rejected > status: open -> closed > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue16610> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16610> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com