Regarding Classes

Colin J. Williams cjw at sympatico.ca
Tue Aug 21 13:59:11 EDT 2007


Lamonte Harris wrote:
> 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.

Colin W.




More information about the Python-list mailing list