[Tutor] Print Doc Strings

Michael Perry vball@erols.com
Mon, 04 Oct 1999 11:13:37 -0400


Hello,

I would like to loop through all of the classes of a module and print
the __doc__ strings.  I've got this


>>>import sys

>>>for name in dir(sys):
...    print name

This prints all the names.  How can I get to the __doc__ strings?

Michael