power of explicit self?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Dec 16 10:35:26 EST 2009


En Wed, 16 Dec 2009 11:56:17 -0300, Grant Edwards  
<invalid at invalid.invalid> escribió:
> On 2009-12-16, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
>> Fire Crow <me at firecrow.com>:
>>
>>> > Nowhere, I'd say. An *implicit* self would have to be implemented
>>> > somewhere in the compiler -- but an explicit self doesn't. It's
>>> > homogeneous, always name-dot-attribute; the name 'self' is not  
>>> special at
>>> > all.
>>
>>> This is I find very interesting, If I understand your comment
>>> correctly, one of the advantages of implicit self is that it
>>> does not need any special treatment, it's handled like any
>>> other name-dot-attribute.
>>
>> Yes.
>
> I presume you both meant that is an advantage of explicit self
> not implicit?

Yes, sorry, the advantage of an *explicit* self is being homogeneous.

-- 
Gabriel Genellina




More information about the Python-list mailing list