python 2.7 - Access class functions inside a classmethod -


def __init__(self,asset,face,rate,term):     if isinstance(asset,asset):        print 'it asset! program run!'     else:         print 'object input not class,bye!'         exit(1)  @classmethod def equity(cls,loan,asset,period):     return loan.pmi(period)*0.6-loan.balance(period) 

i want access function(self._balance()) of loan class inside equity classmethod. how do that?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -