Distinguishing attributes and methods

Boris Borcic bborcic at gmail.com
Wed Dec 19 08:28:59 EST 2007


MonkeeSage wrote:
> what am I missing?

To my eyes, when you write:

 >I think it muddies the water to say that a.a() and a.a are the same
 >thing--obviously they are not. In the common case, the first is a
 >method, and the second is a variable.

What you are most obviously missing is what's shown by

b=a.a
b()

IOW I am tempted to make the prediction that you never use bound methods as 
values :)

Cheers, BB




More information about the Python-list mailing list