In fact, selfnot available in static methods. If @staticmethoddecoration was used instead @classmethod, the first parameter will be a reference to the class itself (usually called cls). But despite all this, inside the static method, methodB()you can access the static method methodA()directly through the class name:
@staticmethod
def methodB():
print 'methodB'
A.methodA()
source
share