Message197902
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 |
|
Date |
User |
Action |
Args |
2013-09-16 14:31:38 | ethan.furman | set | recipients:
+ ethan.furman, barry, ncoghlan, pitrou, r.david.murray, eli.bendersky |
2013-09-16 14:31:38 | ethan.furman | set | messageid: <1379341898.19.0.933877435503.issue19030@psf.upfronthosting.co.za> |
2013-09-16 14:31:38 | ethan.furman | link | issue19030 messages |
2013-09-16 14:31:38 | ethan.furman | create | |
|