Get dosctring without import

Jean-Michel Pichavant jeanmichel at sequans.com
Fri Feb 26 05:27:51 EST 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.

JM



More information about the Python-list mailing list