Message273396
| Author | ztane |
|---|---|
| Recipients | abarry, r.david.murray, xiang.zhang, ztane |
| Date | 2016-08-22.18:45:52 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1471891552.45.0.565842581263.issue27794@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I've got one idea about how to implement this, but it would require adding a new flag field to PyExc_AttributeError type. This flag, if set, would tell that the AttributeError in question was raised in C descriptor code or under similar circumstances, and that the attribute name was not known, and thus it is OK for setattr/delattr and attribute lookups to append ": attributename" to the end of the message, then clear the flag; then all those places that raise AttributeError in __get__, __set__, __del__ would just need to set this flag. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016-08-22 18:45:52 | ztane | set | recipients: + ztane, r.david.murray, xiang.zhang, abarry |
| 2016-08-22 18:45:52 | ztane | set | messageid: <1471891552.45.0.565842581263.issue27794@psf.upfronthosting.co.za> |
| 2016-08-22 18:45:52 | ztane | link | issue27794 messages |
| 2016-08-22 18:45:52 | ztane | create | |