Explicit Frustration of the Self

Grant Edwards grante at visi.com
Sat Jan 4 19:24:33 EST 2003


In article <tGER9.8038$rr1.1290343 at news20.bellglobal.com>, Sean Ross wrote:

> When I first began learning python(and I still am learning), I found the
> practice of passing self as an argument to its instance methods hackish. I
> didn't mind the explicit use of self(and I still don't - in fact I prefer
> it) but I didn't understand why passing it to its own methods was necessary.

I'm confused. I dont pass self as an argument to methods when calling them,
and I don't remember seeing it done in other people's code.  Can you provide
an example of what you're talking about?

-- 
Grant Edwards                   grante             Yow!  I want a WESSON
                                  at               OIL lease!!
                               visi.com            




More information about the Python-list mailing list