Message197906
| Author | ncoghlan |
|---|---|
| Recipients | barry, eli.bendersky, ethan.furman, ncoghlan, pitrou, r.david.murray |
| Date | 2013-09-16.14:51:17 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <CADiSq7dkrYgG6CfvWnuf-ocpFaRWAaG3QMo4LFbsH+jdp9Dbwg@mail.gmail.com> |
| In-reply-to | <1379341898.19.0.933877435503.issue19030@psf.upfronthosting.co.za> |
| Content | |
|---|---|
The current behaviour is broken for *any* descriptor which doesn't return itself when retrieved from the class. It just so happens that all the *other* descriptors in the standard library work that way, so it doesn't matter if you retrieve them directly from __dict__ or retrieve them with getattr - you'll get the descriptor object either way. So we should be calling getattr first, and always taking __doc__ (if any) from the returned object. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013-09-16 14:51:17 | ncoghlan | set | recipients: + ncoghlan, barry, pitrou, r.david.murray, eli.bendersky, ethan.furman |
| 2013-09-16 14:51:17 | ncoghlan | link | issue19030 messages |
| 2013-09-16 14:51:17 | ncoghlan | create | |