This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Omer.Katz, alex, carljm, eric.araujo, madison.may, ncoghlan, pitrou, pydanny, r.david.murray, rhettinger, serhiy.storchaka
Date 2018-05-19.05:38:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526708283.51.0.682650639539.issue21145@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-05-19 05:38:03ncoghlansetrecipients: + ncoghlan, rhettinger, pitrou, carljm, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz
2018-05-19 05:38:03ncoghlansetmessageid: <1526708283.51.0.682650639539.issue21145@psf.upfronthosting.co.za>
2018-05-19 05:38:03ncoghlanlinkissue21145 messages
2018-05-19 05:38:03ncoghlancreate