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.ismodule()

inspect.ismodule(object) Return true if the object is a module.

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.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.isgeneratorfunction()

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

inspect.isframe()

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

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.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.isclass()

inspect.isclass(object) Return true if the object is a class, whether built-in or created in Python code.