self

Vojin Jovanovic vjovanov at stevens-tech.edu
Tue Jun 4 12:15:22 EDT 2002


I have been working on a project trying to implement some advanced
functionality.  Now, one thing that has been a constraint for me is the
concept of self.  Why is it that within a class one has to use self. (or
"any word". ) to refer to instance variables? Would it not be more logical
to just use the name of the variable like it is for example in C++?

Vin





More information about the Python-list mailing list