isstaticmethod

This is a dummy package.


Keywords
python
Install
pip install isstaticmethod==0.0.post0

Documentation

Travis

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

Sources