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

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