PyDocs

Nav

Python Runtime Services

ismethod

inspect

function (source)
  • ismethod(object)
Return true if the object is an instance method.
1 Example
>>> instance = Greeter()

>>> instance.say_hello
<bound method Greeter.say_hello of <__main__.Greeter object ...>>
>>> ismethod(instance.say_hello)
True
>>> isfunction(instance.say_hello)
False
from the Python docs
See Also
No see-alsos for inspect/ismethod
0 Notes
No notes for ismethod