History of 'self' and why not at least 'my'?

Oleg Broytmann phd at phd.pp.ru
Fri Jan 11 03:08:06 EST 2002


On Fri, Jan 11, 2002 at 12:08:06AM +2328, Fernando PИrez wrote:
> I'm curious as to why 'self' was chosen instead of the shorter 'my' for 
> naming the instance passed to methods.

   Python was not designed from scratch. Guido borrowed many ideas and
concepts from different languages (and I can admit he did it in the best
possible way, without any eclectic!)
   "Self" was borrowed from Object Pascal family (Modula-3, I think).

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list