Message176817
| Author |
asvetlov |
| Recipients |
asvetlov, gvanrossum |
| Date |
2012年12月02日.23:30:18 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1354491019.56.0.301403725072.issue16596@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年12月02日 23:30:19 | asvetlov | set | recipients:
+ asvetlov, gvanrossum |
| 2012年12月02日 23:30:19 | asvetlov | set | messageid: <1354491019.56.0.301403725072.issue16596@psf.upfronthosting.co.za> |
| 2012年12月02日 23:30:19 | asvetlov | link | issue16596 messages |
| 2012年12月02日 23:30:19 | asvetlov | create |
|