You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
remove wrapping of __set_name__ exceptions in RuntimeError #77758
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-05-19.05:43:22.815>created_at=<Date2018-05-19.05:41:49.927>labels= ['interpreter-core', '3.8']
title='remove wrapping of __set_name__ exceptions in RuntimeError'updated_at=<Date2018-05-19.05:43:22.814>user='https://github.com/carljm'
"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."
Activity
carljm commentedon May 19, 2018
Per Nick Coghlan in discussion on bpo-21145:
"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."
https://github.com/python/cpython/blob/master/Objects/typeobject.c#L7263
carljm commentedon May 19, 2018
Oops, duplicate of bpo-33576.