Generating API documentation as a textfile

Giampaolo Rodola' gnewsg at gmail.com
Mon Dec 3 09:45:45 EST 2007


On 3 Dic, 11:26, Samuel <newsgro... at debain.org> wrote:
> Does anyone know an easy way to extract the API documentation that is
> embedded into a Python file as a text file?
>
> -Samuel

Something like this?

print >> open('file.txt', 'w'), dir.__doc__



More information about the Python-list mailing list