Why self?
brueckd at tbye.com
brueckd at tbye.com
Tue Jul 9 16:43:41 EDT 2002
On Tue, 9 Jul 2002, Louis M. Pecora wrote:
> Yeah, I may be one of those complainers. I have tried to learn the
> language well and really like it, but for some reason this self. thing
> really bugs me. (I _am_ seeing a therapist :-) ). I write a lot of
> scientifc code and I just think
>
>
> self.y= self.x**2 * self.t/self.z + self.a * FFT(self.tseries)
>
> is a LOT uglier than
>
> y= x**2 * t/z + a * FFT(tseries)
s = self
s.y = s.x**2 * s.t/s.z + s.a * FFT(s.tseries)
More information about the Python-list
mailing list