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 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
History
Date User Action Args
2013-09-16 14:31:38ethan.furmansetrecipients: + ethan.furman, barry, ncoghlan, pitrou, r.david.murray, eli.bendersky
2013-09-16 14:31:38ethan.furmansetmessageid: <1379341898.19.0.933877435503.issue19030@psf.upfronthosting.co.za>
2013-09-16 14:31:38ethan.furmanlinkissue19030 messages
2013-09-16 14:31:38ethan.furmancreate