Install
$ [sudo] pip install isstaticmethod
Examples
>>> from isstaticmethod import isstaticmethod
>>> class CLS:
@classmethod
def classmethod(cls,x):
print("executing class_foo(%s,%s)" % (cls,x))
@staticmethod
def staticmethod(x):
print("executing static_foo(%s)" % x)
>>> isstaticmethod(CLS.staticmethod)
True
>>> isstaticmethod(CLS.classmethod)
False