inspect.ismethod()

inspect.ismethod(object) Return true if the object is a bound method written in Python.

inspect.ismemberdescriptor()

inspect.ismemberdescriptor(object) Return true if the object is a member descriptor. CPython implementation detail: Member descriptors are attributes defined in extension modules via PyMemberDef structures. For Python implementations without such types, this method will always return False.

inspect.isgetsetdescriptor()

inspect.isgetsetdescriptor(object) Return true if the object is a getset descriptor. CPython implementation detail: getsets are attributes defined in extension modules via PyGetSetDef structures. For Python implementations without such types, this method will always return False.

inspect.isgeneratorfunction()

inspect.isgeneratorfunction(object) Return true if the object is a Python generator function.

inspect.isgenerator()

inspect.isgenerator(object) Return true if the object is a generator.

inspect.isfunction()

inspect.isfunction(object) Return true if the object is a Python function, which includes functions created by a lambda expression.

inspect.isframe()

inspect.isframe(object) Return true if the object is a frame.

inspect.isdatadescriptor()

inspect.isdatadescriptor(object) Return true if the object is a data descriptor. Data descriptors have both a __get__ and a __set__ method. Examples are properties (defined in Python), getsets, and members. The latter two are defined in C and there are more specific tests available for those types, which is robust across Python implementations. Typically, data descriptors will also have __name__ and __doc__ attributes (properties, getsets, and members have both of these attributes), but this

inspect.iscoroutinefunction()

inspect.iscoroutinefunction(object) Return true if the object is a coroutine function (a function defined with an async def syntax). New in version 3.5.

inspect.iscoroutine()

inspect.iscoroutine(object) Return true if the object is a coroutine created by an async def function. New in version 3.5.