Regarding Classes

O.R.Senthil Kumaran orsenthil at users.sourceforge.net
Wed Aug 22 14:01:35 EDT 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
http://uthcode.sarovar.org



More information about the Python-list mailing list