Message197902
| Author |
ethan.furman |
| Recipients |
barry, eli.bendersky, ethan.furman, ncoghlan, pitrou, r.david.murray |
| Date |
2013年09月16日.14:31:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1379341898.19.0.933877435503.issue19030@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Switching the order to try getattr first is going to make getting the doc from the descriptor problematic -- we have no way of knowing if the descriptor doc goes with the object we got back from getattr.
Current patch adds VirtualAttribute to types, and reworks inspect.classify_class_attrs, inspect.getmembers, and Enum to use that instead of _RouteClassAttributeToGetattr (which has been removed).
Tests are still needed for the new VirtualAttribute.
Not sure VirtualAttribute is the best name; other ideas:
- InstanceProperty
- AttributeProperty
- HiddenClassProperty |
|