Message317097
I think it would make sense to remove the exception wrapping from the __set_name__ calls - I don't think we're improving the ease of understanding the tracebacks by converting everything to a generic RuntimeError, and we're hurting the UX of descriptor validation cases like this one.
[1] https://github.com/python/cpython/blob/master/Objects/typeobject.c#L7263 |
|
Date |
User |
Action |
Args |
2018-05-19 05:38:03 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, pitrou, carljm, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz |
2018-05-19 05:38:03 | ncoghlan | set | messageid: <1526708283.51.0.682650639539.issue21145@psf.upfronthosting.co.za> |
2018-05-19 05:38:03 | ncoghlan | link | issue21145 messages |
2018-05-19 05:38:03 | ncoghlan | create | |
|