pydoc - generating HTML docs from string input

gregpinero at gmail.com gregpinero at gmail.com
Wed Nov 7 13:15:59 EST 2007


Has anyone ever tried mucking with pydoc to the point where you can
get it to give you output from a string input?  For example I'd like
to give it a whole module to generate documentation for but all within
a string:

#little sample

module_code='''
"""Module docstring"""

def func1():
    """ some docstring"""
    pass

...

'''

pydoc.html(module_code) -> HTML output as a string

Any ideas?

-Greg




More information about the Python-list mailing list