Distinguishing attributes and methods
Jan Claeys
usenet at janc.be
Sun Dec 9 21:33:28 EST 2007
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
--
JanC
More information about the Python-list
mailing list