Python Developer — Hard
Key points
- __getattribute__ is called on every attribute access
- __getattr__ is called only when normal lookup fails
- Overriding __getattribute__ can intercept all access but requires calling super() carefully
Ready to go further?
Related questions
