[Tutor] How to Automatically generate a synopsis for a Module
Tim Johnson
tim at johnsons-web.com
Tue Nov 28 03:30:22 CET 2006
<blush> Amazing what google can do</blush>
I think pydoc does it all...
pydoc -p 1234 sets up the server what what I need.
Never mind! :-)
tim
* Tim Johnson <tim at johnsons-web.com> [061127 17:24]:
> Hello:
> If I start the python interpreter, then import a file, and
> type
> help(module_name_here)
> Documentation about the module is displayed in detail.
>
> I would like to write a python script that
> Searches for all python scripts in a directory, and
> extracts (initially) the description for each script as
> a string so that I can print to stdout.
>
> IOWS:
> I want to extract what help(module) would display in
> the python interpreter.
>
> Any ideas? :-)
> TIA
> tim
>
> --
> Tim Johnson <tim at johnsons-web.com>
> http://www.alaska-internet-solutions.com
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Tim Johnson <tim at johnsons-web.com>
http://www.alaska-internet-solutions.com
More information about the Tutor
mailing list