[Python-Dev] Re: pydoc.py (show docs both inside and outside of
Thu, 11 Jan 2001 18:51:54 -0800 (PST)
On Fri, 12 Jan 2001, Martin v. Loewis wrote:
> > Did using pydoc like "man" work okay for you?
> Yes, that is very impressive.
Good. What platform did you try it on?
I have updated the scripts now to provide a very rudimentary HTTP server
skuld% pydoc -p 8080
starting server on port 8080
This starts a server on port 8080 that generates HTML documentation for
modules on the fly. The root page (http://localhost:8080/) shows an
index of modules -- it badly needs some cleaning up, but at least it
provides access to all the documentation.
Also, as you requested:
skuld% pydoc -h
/home/ping/bin/pydoc <name> ...
Show documentation on something.
<name> may be the name of a Python function, module,
package, or a dotted reference to a class or function
within a module or module in a package.
/home/ping/bin/pydoc -k <keyword>
Search for a keyword in the short descriptions of modules.
/home/ping/bin/pydoc -p <port>
Start an HTTP server on the given port on the local machine.
More to come.