[Tutor] Classes, methods and self
Justin Heath
justin@unixremedies.com
Fri Aug 1 11:41:02 2003
I am going through some various class documentation (Learning to Program
and Learning Python) and I cannot seem to understand why self is needed
in a method declaration. I "believe" that I understand what self does
(i.e. connects itself to the current object instance). However, what I
do not understand is why you have to explicitly declare self in the
argument list of a method. I hope that was clear. Can anyone clarify
this for me?
Thanks again,
Justin