Cheryl Sabella added the comment:
Terry,
Thanks for clarifying with this example. I hadn't tried this when I was playing with the other example. I guess __getattribute__ might be defined by a class, but generally wouldn't be called directly, so the use of __getattr__ and __getattribute__ and the raising of AttributeError is more for an `attributeref` (https://docs.python.org/3/reference/expressions.html#attribute-references) usage?
----------
nosy: +csabella
_______________________________________
Python tracker
https://bugs.python.org/issue8722
_______________________________________