Origin of 'self'

Westley Martínez anikom15 at gmail.com
Mon Mar 3 07:16:31 CET 2014

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.

Westley Martínez

More information about the Python-list mailing list