python doc in command line

Ben Finney bignose+hates-spam at benfinney.id.au
Wed Jul 16 19:30:38 EDT 2008


Peng Yu <PengYu.UT at gmail.com> 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