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 carljm
Recipients Omer.Katz, alex, carljm, eric.araujo, madison.may, ncoghlan, pitrou, pydanny, r.david.murray, rhettinger, serhiy.storchaka
Date 2018-05-19.04:59:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526705950.98.0.682650639539.issue21145@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-05-19 04:59:11carljmsetrecipients: + carljm, rhettinger, ncoghlan, pitrou, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz
2018-05-19 04:59:10carljmsetmessageid: <1526705950.98.0.682650639539.issue21145@psf.upfronthosting.co.za>
2018-05-19 04:59:10carljmlinkissue21145 messages
2018-05-19 04:59:10carljmcreate