➜

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.

作者 ncoghlan
收信人 alonho, benjamin.peterson, hniksic, ncoghlan, nikratio
日期 2013-11-13.14:46:46
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1384354007.21.0.640295427502.issue18861@psf.upfronthosting.co.za>
In-reply-to
内容
So, I've been pondering the idea of traceback/frame annotations and exception trees a bit.

And what I'm wondering is if it may make sense to have the ability to annotate *frames* at runtime, and these annotations can be qualified by module names. So, for example, you might be able to write things like:

    sys.annotate_frame("codecs", "encoding", the_encoding)
    sys.annotate_frame("codecs", "decoding", the_encoding)
    sys.annotate_frame("traceback", "hide", True)
    sys.annotate_frame("traceback", "context", exc)

And then the traceback display machinery would be updated to do something useful with the annotations.

I'm not sure how ExitStack would cope with that (or other code that fakes tracebacks) but it's something to ponder.
历史
日期 用户 动作 参数
2013-11-13 14:46:47ncoghlan修改recipients: + ncoghlan, hniksic, benjamin.peterson, nikratio, alonho
2013-11-13 14:46:47ncoghlan修改messageid: <1384354007.21.0.640295427502.issue18861@psf.upfronthosting.co.za>
2013-11-13 14:46:47ncoghlan链接issue18861 messages
2013-11-13 14:46:46ncoghlan创建