On Thu, Dec 4, 2008 at 9:46 AM, prasad rao <[EMAIL PROTECTED]> wrote: > > Hello friends. > I am new to programing.I am learning Python. > I failed in my attempts to retrive doc strings of methods in > a module. > """ > for x in dir(logging): > print x,x.__doc__
Here x is a string, that is why you print out str.__doc__. Try this: print x, getattr(logging, x).__doc__ or, just help(logging) Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor