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 -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -