__getattr__: The Last-Ditch Fallback Mechanism

`__getattr__` is a fallback method, activated *only* if `__getattribute__` (or the standard attribute lookup) fails to find the requested attribute and consequently raises an `AttributeError`.

Sources

Open the full topic