[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed
Andrew Svetlov
report at bugs.python.org
Mon Dec 3 00:30:19 CET 2012
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 <report at bugs.python.org>
<http://bugs.python.org/issue16596>
_______________________________________
More information about the Python-bugs-list
mailing list