➜

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
收信人 Martin Teichmann, Martin.Teichmann, Tim.Graham, ncoghlan
日期 2016-09-20.15:51:41
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1474386701.35.0.943526914025.issue28214@psf.upfronthosting.co.za>
In-reply-to
内容
The information we want to include in the chained exception:

1. The name of the offending attribute (since the traceback will point to the class header, not to the assignment)
2. The repr of the offending attribute (since the innner exception will refer to the return value from "attr.__set_name__" rather then the value assigned to the attribute)

The other idea I mentioned (allowing "__set_name__ = None" to prevent falling back to "__getattr__") needs a bit more consideration, as I don't quite recall where we're currently at in terms of expanding that idiom beyond "__hash__" and to the other one-shot ABCs.
历史
日期 用户 动作 参数
2016-09-20 15:51:41ncoghlan修改recipients: + ncoghlan, Martin.Teichmann, Tim.Graham, Martin Teichmann
2016-09-20 15:51:41ncoghlan修改messageid: <1474386701.35.0.943526914025.issue28214@psf.upfronthosting.co.za>
2016-09-20 15:51:41ncoghlan链接issue28214 messages
2016-09-20 15:51:41ncoghlan创建