[Tutor] why "self" in methods?

orbitz at ezabel.com orbitz at ezabel.com
Sun Apr 4 15:34:30 EDT 2004

You could have a reference to a method when you don't have a specific object to
act upon it yet. Useful for callbacks where you want to use the same method on a
series of objects of the same type.

On Sun, 4 Apr 2004 19:42:03 +0100
"Alan Gauld" <alan.gauld at blueyonder.co.uk> wrote:

> > Also Python's approach allows for "unbound" methods.
> As a matter of interest, does anyone know of a valid use 
> for unbound methods? I can't think of one...
> Alan G.
> (Just home from a weeks vacation without a computer in sight! :-)
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list