PyDocs

Nav

Python Runtime Services

object.__getattr__

builtins

method of object
  • object.__getattr__(self, name)
Called when the default attribute access fails with an AttributeError (either __getattribute__() raises an AttributeError because name is not an instance attribute or an attribute in the class tree for self; or __get__() of a name property raises AttributeError). This method should either return the (computed) attribute value or raise an AttributeError exception. The object class itself does not provide this method.
0 Examples
No examples for builtins/object.__getattr__.
See Also
No see-alsos for builtins/object.__getattr__
0 Notes
No notes for object.__getattr__