[Tutor] How to Automatically generate a synopsis for a Module
Tim Johnson
tim at johnsons-web.com
Tue Nov 28 03:21:40 CET 2006
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
More information about the Tutor
mailing list