On 5/2/2016 8:50 AM, Pavol Lisy wrote:
I just tried to extrapolate this idea a little bit.
I searched for sources with many "self" in one line and found this function in mpmath/calculus/extrapolation.py:
def factor_sidi(self, i): return (self.theta + self.n - 1) * (self.theta + self.n - 2) /
self.ctx.mpf((self.theta + 2 * self.n - i - 2) * (self.theta + 2 * self.n - i - 3))
def factor_sidi(using self, i): return (.theta + .n - 1) * (.theta + .n - 2) /
.ctx.mpf((.theta + 2 * .n - i - 2) * (.theta + 2 * .n - i - 3))
What dou you think?
As stated in another post, I'm personally used to this syntax because I used to work in a language that has this (Visual Foxpro) so for me it feels logic and natural hence 'pythonic'. I can imagine that for the python eye this currently looks ... off... but the whole idea is that the construct is new so it would look a bit unusual for a while.