Why self?
Louis M. Pecora
pecora at anvil.nrl.navy.mil
Tue Jul 9 17:15:19 EDT 2002
In article <mailman.1026240555.9580.python-list at python.org>, Mark
McEahern <marklists at mceahern.com> wrote:
> Do you use emacs?
No
>It would probably be trivial to write a Lisp macro that
> would transform this:
>
> y = x**2 * t/z + a * FFT(tseries)
>
> into:
>
> x = self.x
> t = self.t
> z = self.z
> a = self.a
> tseries = self.tseries
>
> y = x**2 * t/z + a * FFT(tseries)
>
> self.y = y
>
> // m
Yuck. Lots of effort there.
--
Lou Pecora
- My views are my own.
More information about the Python-list
mailing list