Another try at Python's selfishness

Jens Theisen jth01 at arcor.de
Sat Feb 4 06:03:00 EST 2006


n.estner wrote:

> Yes, I 100% agree to that point!
> But the point is, the current situation is not newbie-friendly (I can
> tell, I am a newbie): I declare a method with 3 parameters but when I
> call it I only pass 2 parameters. That's confusing. If I declare a
> member variable, I write: "self.x  = ValueForX", why can't I be equally
> explicit for declaring member functions?

For someone new to OO in general it might as well be something good, so he  
realises that there actually really is a hidden parameter. After all,  
there is something to understand with "self", and this discrapency between  
the number of arguments and parameters puts newbies to it.

Jens




More information about the Python-list mailing list