Why self?

Mark McEahern marklists at mceahern.com
Fri Jul 5 11:01:50 EDT 2002


> 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?

iirc, one time this topic came up, someone was all vehement about how their
use of "me" was preferable due to it saving two characters.

whatever.

// m

-






More information about the Python-list mailing list