MCPcopy Index your code
hub / github.com/python/cpython / ismethod

Function ismethod

Lib/inspect.py:188–190  ·  view source on GitHub ↗

Return true if the object is an instance method.

(object)

Source from the content-addressed store, hash-verified

186 return isinstance(object, type)
187
188def ismethod(object):
189 """Return true if the object is an instance method."""
190 return isinstance(object, types.MethodType)
191
192def ispackage(object):
193 """Return true if the object is a package."""

Callers 11

ismethoddescriptorFunction · 0.85
isdatadescriptorFunction · 0.85
_has_code_flagFunction · 0.85
_has_coroutine_markFunction · 0.85
isroutineFunction · 0.85
_finddocFunction · 0.85
getfileFunction · 0.85
findsourceFunction · 0.85
getcallargsFunction · 0.85
getclosurevarsFunction · 0.85
checkModuleMethod · 0.85

Calls

no outgoing calls

Tested by 1

checkModuleMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…