So far an attribute was either there or it raised an AttributeError. Python lets a class change that: it can supply attributes that do not exist, intercept every read and write, and forward access to another object. These hooks are what make proxies, lazy objects, wrappers and many libraries’ clever interfaces possible. They are also easy to get wrong, because an attribute hook that touches an attribute can call itself without end.
More lessons in Complete Python Programming