Get dosctring without import

Jean-Michel Pichavant jeanmichel at
Fri Feb 26 11:27:51 CET 2010

Joan Miller wrote:
> When a package is imported, it gets the dosctring to store it in
> *__doc__*.
> Does that funcion is built in python? because I would want use it to
> get the docstring without import a package
Epydoc, a documentation builder is able to do so with the --parse-only 
option. You could take a look at the code, even grab their parser to 
suit your needs. It may be quite difficult though.


More information about the Python-list mailing list