Module Browsing?

Nick Efford nde at comp.leeds.ac.uk
Thu May 10 06:38:21 EDT 2001


On Tue, 08 May 2001 22:30:16 GMT, Nick Perkins <nperkins7 at home.com> wrote:

> Is there an easier way to 'browse' a module from the command line?
> I would like to able to (quickly) see module values and their type,
> module functions and their parameters and doc strings, etc.

Under Python 2.1, use pydoc:

  >>> from pydoc import help
  >>> import mymodule
  >>> help(mymodule)

You can also run pydoc as a program at the shell prompt:

  % pydoc mymodule


Nick




More information about the Python-list mailing list