Joel Goldstick wrote:
Its really nice how python displays help from the docstrings of
modules.  I'd like to save this info to a file, and I realize I've
never come across how to do that.

At the command prompt (not the Python interactive interpreter!), run the pydoc command:

pydoc math

will display the documentation for help.

pydoc -w math

will write it to a file math.html.


To do the same thing from the interactive interpreter, start with:

import pydoc

and go from there.



--
Steven

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to