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

Function isroutine

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

Return true if the object is any kind of function or method.

(object)

Source from the content-addressed store, hash-verified

516 return isinstance(object, types.MethodWrapperType)
517
518def isroutine(object):
519 """Return true if the object is any kind of function or method."""
520 return (isbuiltin(object)
521 or isfunction(object)
522 or ismethod(object)
523 or ismethoddescriptor(object)
524 or ismethodwrapper(object))
525
526def isabstract(object):
527 """Return true if the object is an abstract base class (ABC)."""

Callers 1

classify_class_attrsFunction · 0.85

Calls 5

isbuiltinFunction · 0.85
isfunctionFunction · 0.85
ismethodFunction · 0.85
ismethoddescriptorFunction · 0.85
ismethodwrapperFunction · 0.85

Tested by

no test coverage detected