GNU Info

Info Node: (python2.1-lib.info)inspect

(python2.1-lib.info)inspect


Next: traceback Prev: operator Up: Python Runtime Services
Enter node , (file) or (file)node

Inspect live objects
====================

Extract information and source code from live objects.  This module was
written by Ka-Ping Yee <ping@lfw.org>.
This manual section was written by Ka-Ping Yee <ping@lfw.org>.
_Added in Python 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.

Types and members
Retrieving source code
Classes and functions
interpreter stack

automatically generated by info2www version 1.2.2.9