消息 [277111]
Good catch Serhiy - I'd completely missed that in the original review, and definitely agree we should make that fix independently of the exception chaining idea.
While that correction will fix the specific __getattr__ example given, we still have the problem of actual errors in looking up __set_name__ on the class (e.g. in a metaclass or in __getattribute__) and errors when calling it being hard to debug, as the traceback will point to the class header without giving the name of the offending attribute. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2016-09-21 08:57:43 | ncoghlan | 修改 | recipients:
+ ncoghlan, eric.snow, serhiy.storchaka, Martin.Teichmann, Tim.Graham, Martin Teichmann |
| 2016-09-21 08:57:43 | ncoghlan | 修改 | messageid: <1474448263.8.0.578103245668.issue28214@psf.upfronthosting.co.za> |
| 2016-09-21 08:57:43 | ncoghlan | 链接 | issue28214 messages |
| 2016-09-21 08:57:43 | ncoghlan | 创建 | |
|