inspect

getargspec(func)

Get the names and default values of a function's parameters.

getmembers(object[, predicate])

Return all members of an object as (name, value) pairs sorted by name.

ismodule(object)

Return true if the object is a module.

isclass(object)

Return true if the object is a class.

ismethod(object)

Return true if the object is an instance method.

isfunction(object)

Return true if the object is a user-defined function.

isgeneratorfunction(obj)

Return true if the object is a user-defined generator function.

isgenerator(object)

Return true if the object is a generator.

istraceback(object)

Return true if the object is a traceback.

isframe(object)

Return true if the object is a frame object.

iscode(object)

Return true if the object is a code object.

isbuiltin(object)

Return true if the object is a built-in function or method.

isroutine(object)

Return true if the object is any kind of function or method.

isabstract(object)

Return true if the object is an abstract base class (ABC).

ismethoddescriptor(object)

Return true if the object is a method descriptor.

isdatadescriptor(object)

Return true if the object is a data descriptor.

isgetsetdescriptor(object)

Return true if the object is a getset descriptor.

ismemberdescriptor(object)

Return true if the object is a member descriptor.