Regarding Classes

O.R.Senthil Kumaran orsenthil at
Wed Aug 22 20:01:35 CEST 2007

> > What is the main reason of "self" when it involves classes/functions
> > 
> "self" provides a semi-standard way of addressing the current instance 
> of a class.  It is used in an instance's method.  It is not typically
> used in functions.

Btw, you are free to use any other term as well instead of 'self'. But that just is not the practise. You can call it anything you want.

O.R.Senthil Kumaran

More information about the Python-list mailing list