Return true if the object is any kind of function or method.
(object)
| 516 | return isinstance(object, types.MethodWrapperType) |
| 517 | |
| 518 | def 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 | |
| 526 | def isabstract(object): |
| 527 | """Return true if the object is an abstract base class (ABC).""" |
no test coverage detected