I have a class that its properties are often accessed by several nested indices, it works fine, but the code is ugly and unreadable:
self.beta(self.index(self.act))=self.beta(self.index(self.act))+self.alpha*self.step(self.index(self.sv));
Is there any command like "with" in python or "using" in other languages to avoid ".self"s? Thanks