[docs] [issue8722] Documentation for __getattr__

Cheryl Sabella report at bugs.python.org
Fri Dec 8 11:32:04 EST 2017


Cheryl Sabella <chekat2 at gmail.com> 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 <report at bugs.python.org>
<https://bugs.python.org/issue8722>
_______________________________________


More information about the docs mailing list