class C(object): @rv def y(self, _y, *_cond): return .4; @rv def x(self, _x, *_cond): if len(_cond) <= 0: return .5; else: return .5*self.y[_cond[0][self.y]];