Return true if the object is a method wrapper.
(object)
| 512 | return isinstance(object, types.BuiltinFunctionType) |
| 513 | |
| 514 | def ismethodwrapper(object): |
| 515 | """Return true if the object is a method wrapper.""" |
| 516 | return isinstance(object, types.MethodWrapperType) |
| 517 | |
| 518 | def isroutine(object): |
| 519 | """Return true if the object is any kind of function or method.""" |