python doc in command line

Ben Finney bignose+hates-spam at
Thu Jul 17 01:30:38 CEST 2008

Peng Yu <PengYu.UT at> writes:

> Perl has a command line help perldoc. I'm wondering if python has a
> similar help command.

The interactive interpreter has a "help" command, and a corresponding
"help" function which can be passed an object to display its
docstrings recursively and nicely-formatted.

The same facility is available with the external 'pydoc' command.

 \        “The right to search for truth implies also a duty; one must |
  `\      not conceal any part of what one has recognized to be true.” |
_o__)                                                 —Albert Einstein |
Ben Finney

More information about the Python-list mailing list