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 Martin Teichmann, Martin.Teichmann, Tim.Graham, ncoghlan
Date 2016-09-20.15:51:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The information we want to include in the chained exception:

1. The name of the offending attribute (since the traceback will point to the class header, not to the assignment)
2. The repr of the offending attribute (since the innner exception will refer to the return value from "attr.__set_name__" rather then the value assigned to the attribute)

The other idea I mentioned (allowing "__set_name__ = None" to prevent falling back to "__getattr__") needs a bit more consideration, as I don't quite recall where we're currently at in terms of expanding that idiom beyond "__hash__" and to the other one-shot ABCs.
Date User Action Args
2016-09-20 15:51:41ncoghlansetrecipients: + ncoghlan, Martin.Teichmann, Tim.Graham, Martin Teichmann
2016-09-20 15:51:41ncoghlansetmessageid: <>
2016-09-20 15:51:41ncoghlanlinkissue28214 messages
2016-09-20 15:51:41ncoghlancreate