Distinguishing attributes and methods

MonkeeSage MonkeeSage at gmail.com
Sat Dec 8 16:07:27 EST 2007


On Dec 8, 2:51 pm, Glenn Hutchings <zond... at googlemail.com> wrote:
> On Dec 8, 7:44 pm, MonkeeSage <MonkeeS... at gmail.com> wrote:
>
> > I think it muddies the water to say that a.a() and a.a are the same
> > thing--obviously they are not.
>
> A thing is not what it is;
> A thing is what it does.
> This is the Way of the Duck.
>
>     -- Basho (in his "3 extra syllables" phase)

Bah. Type-by-behavior never impressed me much. And I still think that
a.a is semantically different from a.a() in python.

Regards,
Jordan



More information about the Python-list mailing list