Xavier de Gaye added the comment: This is a consequence of the problem mentioned in msg 177059 above.
New patch 'issue16596_nostate_3.diff' fixes both problems by having the interpreter issue an exception debug event when processing a StopIteration in target FOR_ITER: * The same debug events are issued now, wether the generator is run within a for loop or not. * 'n' stops now at both the return and exception debug events on returning from the generator. ---------- Added file: http://bugs.python.org/file32699/issue16596_nostate_3.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16596> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com