Message277338
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. |
|
Date |
User |
Action |
Args |
2016-09-24 21:52:27 | eric.snow | set | recipients:
+ eric.snow, t184256 |
2016-09-24 21:52:27 | eric.snow | set | messageid: <1474753947.11.0.131016789692.issue28265@psf.upfronthosting.co.za> |
2016-09-24 21:52:27 | eric.snow | link | issue28265 messages |
2016-09-24 21:52:26 | eric.snow | create | |
|