Why self?

Roy Smith roy at panix.com
Fri Jul 5 10:40:07 EDT 2002


holger krekel <pyth at devel.trillke.net> wrote:
>> I do not find it usefull that I can give it my own name.
> 
> which, in fact, hardly anybody ever does.

Other than in an obfuscated python contest, I can't think of any reason 
why anybody would *ever* use any variable name other than "self" as the 
first formal parameter of a method.

Have you ever seen an example that does?



More information about the Python-list mailing list