Direct Attribute Access¶
The following methods can be defined to customize the meaning of attribute access (use of, assignment to, or deletion of x.name) for class instances.
- Called unconditionally to implement attribute accesses for instances of the class.
- Called when an attribute lookup has not found the attribute in the usual places.
- Called when an attribute assignment is attempted.
- Called when an attribute deletion is attempted.