Message155182
| Author |
Mark.Shannon |
| Recipients |
Mark.Shannon |
| Date |
2012年03月08日.21:11:47 |
| SpamBayes Score |
1.2337896e-09 |
| Marked as misclassified |
No |
| Message-id |
<1331241110.78.0.993419519739.issue14230@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Delegating generators do not show always up in stack traces, such as inspect.stack().
The show up during the first delegation, but not thereafter.
I have attached a patch. It alters the way the YIELD_FROM bytecode works; it loops back on itself. This ensures the delegator's frame is always in the trace.
Unfortunately I started working on it before Benjamin fixed issue 14220
(rev 3357eac1ba62). By the nature of it, this patch necessarily fixes most of issue 14220, so I have just included the tests for issue 14220
in this patch as well.
So in order to apply this, 3357eac1ba62 will have to be backed out.
Sorry for the overlap. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月08日 21:11:51 | Mark.Shannon | set | recipients:
+ Mark.Shannon |
| 2012年03月08日 21:11:50 | Mark.Shannon | set | messageid: <1331241110.78.0.993419519739.issue14230@psf.upfronthosting.co.za> |
| 2012年03月08日 21:11:50 | Mark.Shannon | link | issue14230 messages |
| 2012年03月08日 21:11:49 | Mark.Shannon | create |
|