← 输入框|bugs.python.org|刷新

➜

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.

作者 brett.cannon
收信人 brett.cannon, martin.panter, terry.reedy
日期 2016-02-20.19:48:08
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1455997688.77.0.877336911581.issue26389@psf.upfronthosting.co.za>
In-reply-to
内容
So Terry's right that in my haste to write down the idea I contradicted myself. I do want to tweak the APIs in the traceback module to accept only an exception. The question is whether we need entirely new functions or if the pre-existing ones can be updated to work with just an exception.

And if we were to tweak the existing functions instead of add new ones, I would do it by making all arguments optional and adding a new keyword-only argument called `exc` that took the exception. Either `exc` would be set or the old arguments would need to all be set, and it would be an error to set both sets of arguments. And when the old arguments were taken away then all arguments for those functions would become keyword-only.
历史
日期 用户 动作 参数
2016-02-20 19:48:08brett.cannon修改recipients: + brett.cannon, terry.reedy, martin.panter
2016-02-20 19:48:08brett.cannon修改messageid: <1455997688.77.0.877336911581.issue26389@psf.upfronthosting.co.za>
2016-02-20 19:48:08brett.cannon链接issue26389 messages
2016-02-20 19:48:08brett.cannon创建