Message317096
Sent a PR with the patch.
Nick, I tried your `__set_name__` proposal to get an earlier error in case of an object with slots, but it has the downside that Python seems to always raise a new chained exception if `__set_name__` raises any exception. So instead of getting a clear error, you get an opaque one about "error raised when calling __set_name__ on...", and you have to scroll up to see the real error message. I felt that this was too much usability regression and not worth the benefit of raising the error sooner. Let me know if you feel otherwise. |
|
Date |
User |
Action |
Args |
2018-05-19 04:59:11 | carljm | set | recipients:
+ carljm, rhettinger, ncoghlan, pitrou, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz |
2018-05-19 04:59:10 | carljm | set | messageid: <1526705950.98.0.682650639539.issue21145@psf.upfronthosting.co.za> |
2018-05-19 04:59:10 | carljm | link | issue21145 messages |
2018-05-19 04:59:10 | carljm | create | |
|