"Fernando M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > i was just wondering about the need to put "self" as the first > parameter in every method a class has because, if it's always needed, > why the obligation to write it? couldn't it be implicit? > > Or is it a special reason for this being this way?
There are two different issues. 1. If self was made a keyword, there would be no need for it in the method header. However, that would be a major incompabible change affecting almost every script in existance. Also some people use other words than self. (It would, by the way, result in a performance improvement.) 2. There's been some talk of making the '.' operator allow an implied instance. I'm not sure what the status of this is. These two are actually separate issues; either could be done without the other. John Roth > Thanks. > -- http://mail.python.org/mailman/listinfo/python-list