This method is called whenever an attribute is referenced, whether the instance or class namespace has an attribute with the given name or not. It works only with new-style classes.
For an overview and examples, see Section 26.2.2, “Attribute access control in new-style classes”.