[Tutor] how to read HyperText documentation?

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Fri, 30 Mar 2001 15:00:06 -0800 (PST)


On Fri, 30 Mar 2001, Pijus Virketis wrote:

> I am playing around with the HTML generator program, HyperText right now,
> but I cannot get to its documentation. The author says that it's at
> HyperText.HTML40.__doc__. Sure enough, if I import HyperText, and check
> dir(HyperText), there is a __doc__ module there. But I do not know how to
> get to the info inside. I tried printing __doc__ (ans: None), executing it,
> assigning it to a variable, etc. Could anyone help me out?

Try:

###
import HyperText
print HyperText.HTML40.__doc__
###

What was happening, I think, was that you were printing out the docstring
for the whole HyperText module:

    print HyperText.__doc__

Hope this helps!