MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / ismethod

Function ismethod

tools/python-3.11.9-amd64/Lib/inspect.py:300–308  ·  view source on GitHub ↗

Return true if the object is an instance method. Instance method objects provide these attributes: __doc__ documentation string __name__ name with which this method was defined __func__ function object containing implementation of method

(object)

Source from the content-addressed store, hash-verified

298 return isinstance(object, type)
299
300def ismethod(object):
301 """Return true if the object is an instance method.
302
303 Instance method objects provide these attributes:
304 __doc__ documentation string
305 __name__ name with which this method was defined
306 __func__ function object containing implementation of method
307 __self__ instance to which this method is bound"""
308 return isinstance(object, types.MethodType)
309
310def ismethoddescriptor(object):
311 """Return true if the object is a method descriptor.

Callers 9

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

Calls

no outgoing calls

Tested by

no test coverage detected