The standard pydoc module is very useful. A simple example of how you
could use it:
>>> import pydoc
>>> mymodule = pydoc.importfile(r"C:\My Py\my_foo.py")
>>> html = pydoc.html.page(pydoc.describe(mymodule), 
>>> pydoc.html.document(mymodule))
>>> open("foo.html", "w").write(html)

Then you have a nice foo.html document for your module.

The above isn't necessarily the best way to use pydoc though it's
useful for a single-file bunch of classes. The documentation on pydoc
seems pretty sketchy, but reading the pydoc.py file is a good way to
learn how to use it.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to