Confessions of a Python fanboy

superpollo user at example.net
Thu Jul 30 08:03:38 EDT 2009


Masklinn wrote:
...
> That's an interesting point, but not relevant at the end of the day:  
> `foo.length` and `length(foo)` have the same "practicality". On the  
> other hand Ruby can be praised for the coherence: everything's a  method 
> period end of the story; while Python does have a dichotomy  between 
> methods and functions/generic methods (whether or not that  dichotomy 
> bothers users is another issue).
...
how would you correct a newbie (like me) who says:

"well, the main difference between a function and a method (from the 
caller's pow) is a syntactic one:

fun(obj, arguments)

as opposed to:

obj.met(arguments)

but the effect is just about the same."

?

bye



More information about the Python-list mailing list