Differences

This shows you the differences between two versions of the page.

Link to this comparison view

goplayer:rv [2011/02/13 01:04]
aiartificer
goplayer:rv [2011/02/13 01:06] (current)
aiartificer
Line 31: Line 31:
  
  return property(RV);  return property(RV);
 +</code>
 +
 +<code python rv_example.py>
 +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]];
 </code> </code>
  

goplayer/rv.txt · Last modified: 2011/02/13 01:06 by aiartificer