Distinguishing attributes and methods

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Dec 8 13:56:37 EST 2007


MonkeeSage a écrit :
> On Dec 8, 2:10 am, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> 
>>On Fri, 07 Dec 2007 23:19:40 -0800, tjhnson wrote:
>>
>>>With properties, attributes and methods seem very similar.  I was
>>>wondering what techniques people use to give clues to end users as to
>>>which 'things' are methods and which are attributes.
>>
>>Methods are attributes.  So the decision is easy -- everything on an
>>object is an attribute.  ;-)
>>
>>Ciao,
>>        Marc 'BlackJack' Rintsch
> 
> 
> I think he means callable attributes (methods) and non-callable
> attributes (variables).

callable attributes are not necessarily methods, and are still 
'variables' anyway.



More information about the Python-list mailing list