folks, what's wrong with this?
anirbans at cs.ubc.ca
Mon Apr 5 13:27:32 EDT 2010
> And now for the most import point: __getattr__ is only called as a
> *last* resort. That is, after the attribute lookup mechanism will have
> tried *and failed* to find the name in the instance's __dict__.
Thanks you all for all the suggestions and thoughts. So in other
words, this piece of code:
in __getattr__ is redundant.
More information about the Python-list