The need to put "self" in every method



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?

Thanks.

.



Relevant Pages

  • Re: The need to put "self" in every method
    ... 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? ... incompabible change affecting almost every script in existance. ...
    (comp.lang.python)
  • Re: The need to put "self" in every method
    ... 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? ... The basis of optimism is sheer terror. ...
    (comp.lang.python)
  • Re: Une réponse pleine de bon sens
    ... > nombreux Flamands l'obligation de payer pour aller travailler ... Quelle conne... ... Prev by Date: ...
    (soc.culture.belgium)
  • Re: feliz navidad...pc style?
    ... > Please accept with No Obligation, implied or implicit, my best wishes ... Regards ... at tpg dot com dot au ...
    (alt.usage.english)
  • Re: Catholic church in Vegas
    ... > Sunday obligation. ... Many of the Las Vegas parishes even have Masses ... Prev by Date: ...
    (alt.vacation.las-vegas)