inspect — Inspect live objects — Python 3.10.1 documentation
docs.python.org › 3 › libraryJan 04, 2022 · inspect.isroutine (object) ¶ Return True if the object is a user-defined or built-in function or method. inspect.isabstract (object) ¶ Return True if the object is an abstract base class. inspect.ismethoddescriptor (object) ¶ Return True if the object is a method descriptor, but not if ismethod(), isclass(), isfunction() or isbuiltin() are true.