➜

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
收信人 Rosuav, belopolsky, gvanrossum, ncoghlan, python-dev, r.david.murray, rhettinger, schlamar, scoder, serhiy.storchaka, vstinner
日期 2015-01-08.08:47:20
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1420706840.38.0.0765067033815.issue22906@psf.upfronthosting.co.za>
In-reply-to
内容
Looking more closely at the patch:

* for the missing tracebacks, you're probably hitting the note in https://docs.python.org/3/c-api/exceptions.html#c.PyErr_NormalizeException and need an explicit call to PyErr_SetTraceback (My recollection is that I made this same mistake when working on the codec chaining patch, so we may want to revisit the comment before PyErr_NormalizeException that suggests making setting the traceback attribute on the normalized value implicit)

* to trigger the implicit chaining in PyErr_String, try calling PyErr_Restore on the normalized exception before calling PyErr_SetString, rather than just dropping the references. That should let you drop the subsequent explicit PyErr_SetContext call.
历史
日期 用户 动作 参数
2015-01-08 08:47:20ncoghlan修改recipients: + ncoghlan, gvanrossum, rhettinger, belopolsky, scoder, vstinner, r.david.murray, python-dev, schlamar, Rosuav, serhiy.storchaka
2015-01-08 08:47:20ncoghlan修改messageid: <1420706840.38.0.0765067033815.issue22906@psf.upfronthosting.co.za>
2015-01-08 08:47:20ncoghlan链接issue22906 messages
2015-01-08 08:47:20ncoghlan创建