Origin of 'self'
Roy Smith
roy at panix.com
Mon Mar 3 21:14:44 EST 2014
In article <mailman.7684.1393898999.18130.python-list at python.org>,
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")
And Freud uses "id", but that was taken already in Python :-)
More information about the Python-list
mailing list