When I have the usual methods for calling another method in the class, I have to do this
class test: def __init__(self): pass def dosomething(self): print "do something" self.dosomethingelse() def dosomethingelse(self): print "do something else"
but when i have static methods i cant write
self.dosomethingelse()
because there is no instance. How do I do in Python to call a static method from another static method of the same class?
Edit: what a mess. Ok, I edited the question to the original question. I already have the answer to the second question, which is in the commentary of Peter Hansen. If you think that I should open another question for the answer that I already have, plz tell me.
python static-methods
Pablo Dec 07 '09 at 13:23 2009-12-07 13:23
source share