Alexander Sosedkin added the comment:
Oh, I see. The invocation b.__getattribute__(b, attrname) worked on so many
objects that I didn't even think it could be incorrect.
Sorry for wasting your time.
--
resolution: -> not a bug
status: pending -
New submission from Alexander Sosedkin:
I've managed to obtain several objects, which __getattribute__ cannot be
applied to them.
Minimal non-working example (a more detailed one is attached):
b = abs.__class__
b.__getattribute__(b, 'x')
Proxying such objects turned out to be e