Nick Coghlan <ncogh...@gmail.com> added the comment: 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue21145> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com