How do I override __getattr__ in Python without breaking the default behavior?

I want to override the __getattr__ method on a class to do something fancy but I don’t want to break the default behavior.

What’s the correct way to do this?

3 Answers
3

Leave a Comment