[Tutor] Get confused by self

Rob Andrews rob.andrews at gmail.com
Fri Sep 24 00:20:06 CEST 2004


'self' refers to an instance of a class, so if you do something to
'self', you are doing it to the class instance instead of to the class
itself.

I don't know if that really gave you what you were looking for, but
hopefully it's a little helpful.

-Rob


On Thu, 23 Sep 2004 21:54:19 +0100, W X Liu <csmwxl at bath.ac.uk> wrote:
> I am learning the class section for Pyhton, but I get confused by self, what
> does it really mean?


More information about the Tutor mailing list