Why self?
Louis M. Pecora
pecora at anvil.nrl.navy.mil
Wed Jul 10 10:10:11 EDT 2002
In article <3D2B5331.7090104 at onsitetech.com>, Robb Shecter
<rs at onsitetech.com> wrote:
> should really be written like this:
>
> self.__y = self.__x**2 * self.__t/self.__z + self.__a * FFT(self.__tseries)
>
> to be safe from accidental overwriting by subclasses. Now there's a
> beauty! :-)
Eeeewwwww! I am not familiar with the double underscore syntax. Can
you explain it. OK, I guess I can go online and read about it. I'm a
Python user, but not guru. Sorry.
--
Lou Pecora
- My views are my own.
More information about the Python-list
mailing list