Next / Previous / Contents / TCC Help System / NM Tech homepage

19.3.12. __getattribute__(): Intercept all attribute references

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 19.2.2, “Attribute access control in new-style classes”.