"self" vs other names
sebastien
s.keim at laposte.net
Fri Sep 28 11:21:42 EDT 2001
> > I'd mention the possibility.
> not that I subscribe to this, but another common form is simply 's'. You get
> things like 's.dict' or 's.pid'.
I personnaly prefer stu, because this give me 'stu.pid' ;-)
I think, that coherence is more important than 2 characters more or
less.
If you want to use s. or me., why not ?
But if I had to read your code, I'd find you kind to follow the Python
habit's to call self 'self' because:
- I could use 'self' in grep search in both your and my code
- this is the name my brain is trained to, and it is very tired (just
look before)...
More information about the Python-list
mailing list