Author Mark.Shannon
Recipients Mark.Shannon
Date 2012-03-08.21:11:47
SpamBayes Score 1.23379e-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:51Mark.Shannonsetrecipients: + Mark.Shannon
2012-03-08 21:11:50Mark.Shannonsetmessageid: <1331241110.78.0.993419519739.issue14230@psf.upfronthosting.co.za>
2012-03-08 21:11:50Mark.Shannonlinkissue14230 messages
2012-03-08 21:11:49Mark.Shannoncreate