Why self?
Louis M. Pecora
pecora at anvil.nrl.navy.mil
Tue Jul 9 17:17:28 EDT 2002
In article <mailman.1026244012.27424.python-list at python.org>,
<brueckd at tbye.com> wrote:
>
> s = self
> s.y = s.x**2 * s.t/s.z + s.a * FFT(s.tseries)
Yep, I've done that. Not bad. I've even used just an underscore "_"
for the self variable. That hides it more.
_=self
_.y = _.x**2 * _.t/_.z + _.a * FFT(_.tseries)
Is that better? Well, a little.
--
Lou Pecora
- My views are my own.
More information about the Python-list
mailing list