__getattr__ Confusion

Chris Angelico rosuav at gmail.com
Tue Feb 5 02:00:50 CET 2013

On Tue, Feb 5, 2013 at 4:29 AM, Saul Spatz <saul.spatz at gmail.com> wrote:
> class Adder():             # python 2.7, classic class
> Why does this work for __add__ and not for __getattr__?

Is this a case of "why bother trying to understand it, just use
new-style classes"? They do make more sense in many ways.


More information about the Python-list mailing list