Comment

Chris Arndt

You could have just changed the __getattr__ method to look up names starting with two underscores as attributes instead of as dict keys. Shadowing the names of all the special methods which start and end with two underscores is probably a bad idea.

I would have posted example code but I can't figure out how to prevent the comment form submission from stripping all the whitespace at the start of the line. :(