Distinguishing attributes and methods

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Dec 10 13:58:15 EST 2007


Jan Claeys a écrit :
> Op Sun, 09 Dec 2007 12:44:46 -0800, schreef MonkeeSage:
> 
> 
>>The point is that just because the attributes are "looked up the same
>>way" or whatever, doesn't make them the same *kind* of attribute. To say
>>that all attributes are the same in python muddies the water. They are
>>the same in a generic sense that they are attributes, but not in their
>>particular qualities. Like saying "all humans are the same" -- yes, in a
>>general sense of being human. But to leave it at that is not very
>>helpful.
> 
> 
> Well, I guess Python is a language for human being...  ;-)
> 
> 
> To conclude this discussion:
> 
>  * in Python, methods are attributes
>  * in Ruby, attributes are methods
> 
And this is probably the most sensible post in this thread !-)



More information about the Python-list mailing list