Origin of 'self'
Chris Angelico
rosuav at gmail.com
Mon Mar 3 21:13:24 EST 2014
On Tue, Mar 4, 2014 at 1:09 PM, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley MartÃnez
> <anikom15 at gmail.com> declaimed the following:
>
>>I understand that in an object method the first argument in the object itself, called self. However, it doesn't have to be called self, and can be called anything. So my question is why is it called self and not this like from C++ and Java. It's kind of a silly question, but one that I'm curious about nevertheless.
>>
>
> It didn't want to be egotistical (as I recall, M$ VB uses "me")
ALL language designers are egotistical. Goes with the territory.
(Larry Wall said that, I believe, regarding Perl.)
ChrisA
More information about the Python-list
mailing list