Why self?

Ben Altman ben_altman at deadspam.com
Tue Jul 9 09:06:00 EDT 2002


"Lou Pecora" <pecora at anvil.nrl.navy.mil> wrote in message
news:080720021645110243%pecora at anvil.nrl.navy.mil...
> In article <agcnkh$ecr$1 at panix2.panix.com>, Roy Smith <roy at panix.com>
> wrote:
>
> > Saves typing, yes, but makes your code harder to understand by
> > somebody else who has to read and maintain it later.
>
> True, to some extent, although nobody will have to maintain my code.
> It's strictly specialized to my work and will not be used for
> production of anything.
>
> But that is a concern, you're right.

Not if it is understood to be the convention especially if it clearly
documented. Then when you see '_' you strat thinking 'self' all the time.

Ben





More information about the Python-list mailing list