Fire Crow <m...@firecrow.com> wrote:

>> It's not implemented in the compiler. There's a place in the runtime
>> for invoking a method where the object is inserted at the beginning
>> of the parameter list. IIRC, that's done by wrapping the function
>> object.
>
>This is the source of Objects/methodobject.c it look like this is
>where self is added to the argument list, but I'll have to do some 
>more digging.

Well, that's where the owning object is added, but that would be required
whether "self" were implicit or explicit.  C++ would have the same kind of
code to push "this", for example, even though "this" is not shown in the
parameter list.

I agree with the other repliers.  "Explicit" self is not "implemented"
anywhere.  It's just an implementation decision.
-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to