This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doerwalter
Recipients doerwalter, ncoghlan, pitrou, vstinner
Date 2013-11-25.12:02:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385380931.76.0.117328539484.issue19585@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a new version of the patch. The annotation is done on the code object instead of on the frame object. This avoids two problems: There is no runtime overhead, as the decorator returns the original function and no additional frames show up in the traceback. Since the variables are only known at runtime, the annotation is now a function that does the formatting of the annotation message and gets passed the frame object. With this there is no runtime overhead when no exception is raised and even if an exception is raise, but the traceback is never formatted.
History
Date User Action Args
2013-11-25 12:02:11doerwaltersetrecipients: + doerwalter, ncoghlan, pitrou, vstinner
2013-11-25 12:02:11doerwaltersetmessageid: <1385380931.76.0.117328539484.issue19585@psf.upfronthosting.co.za>
2013-11-25 12:02:11doerwalterlinkissue19585 messages
2013-11-25 12:02:11doerwaltercreate