John Gordon <gor...@panix.com> writes:

> In <66a3f64c-d35e-40c7-be69-ddf708e37...@glegroupsg2000goo.googlegroups.com> 
> Niklas Rosencrantz <nikla...@gmail.com> writes:
>
> > What's the story of using these parameters that are called "self"?
>
> "self" is a reference to the class object, and it allows the method to
> access other methods and variables within the class.

No, ‘self’ (in an instance method, which is where it's normally used) is
bound to the instance object. The class object is a different thing.

-- 
 \         “Alternative explanations are always welcome in science, if |
  `\   they are better and explain more. Alternative explanations that |
_o__) explain nothing are not welcome.” —Victor J. Stenger, 2001-11-05 |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to