Andrew Svetlov added the comment:

Patch attached.
It modifies "next", "return" and "until" commands behavior when they are 
executed if current debugged function is generator.
1. "next" skips stack unwindind if yield tries to follow it. Now it goes just 
to next executed line.
2. "until" does the same: skips all yields until target is reached.
3. "return" waits to return *from* generator (by explicit or implicit 
StopIteration or GeneratorExit exception) ignoring following yields inside 
generator.

----------
keywords: +patch
Added file: http://bugs.python.org/file28189/issue16596.diff

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

Reply via email to