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 eric.snow
Recipients eric.snow, t184256
Date 2016-09-24.21:52:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474753947.11.0.131016789692.issue28265@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm.  It's not clear what you're after here.  The error from your example code is correct.  The valid invocation is:

b.__getattribute__(abs, 'x')

That works just fine.  If you want to look up *class* attributes then you must call __getattribute__ on the class's class:

type(b).__getattribute__(b, 'x')

This is how attribute lookup works.  I recommend closing this as not-a-bug.  If you have further question your best bet is to ask on the python-list mailing list.
History
Date User Action Args
2016-09-24 21:52:27eric.snowsetrecipients: + eric.snow, t184256
2016-09-24 21:52:27eric.snowsetmessageid: <1474753947.11.0.131016789692.issue28265@psf.upfronthosting.co.za>
2016-09-24 21:52:27eric.snowlinkissue28265 messages
2016-09-24 21:52:26eric.snowcreate