What is "self"?

Erik Max Francis max at alcyone.com
Thu Sep 22 22:45:49 EDT 2005


Ron Adam wrote:

> When you call a method of an instance, Python translates it to...
> 
>      leader.set_name(leader, "John")

It actually translates it to

	Person.set_name(leader, "John")

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Extremes meet.
   -- John Hall Wheelock



More information about the Python-list mailing list