New in version 2.1. The inspect module provides several useful
functions to help get information about live objects such as
modules, classes, methods, functions, tracebacks, frame objects,
and code objects. For example, it can help you examine the
contents of a class, retrieve the source code of a method,
extract and format the argument list for a function, or get all
the information you need to display a detailed traceback. There
are four main kinds of services provided by this module: type
checking, getting source code, inspecting classes and functions,
and examining the interpreter stack. The getmembers() function
retrieves the members of an object such as a class or module.
The sixteen functions whose names begin with “is” are mainly
provided as convenient choices for the second argument to
getmembers(). They also help you determine when you can expect
to find the following special attributes: |__file__||filename
(missing for built-in modules)| |__module__||name of module in
which this class was defined|