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
Post a Comment