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

Posted by sheats on Stack Overflow See other posts from Stack Overflow or by sheats
Published on 2010-03-08T23:29:32Z Indexed on 2010/03/08 23:36 UTC
Read the original article Hit count: 133

Filed under:

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?

© Stack Overflow or respective owner

Related posts about python