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__ ============= for x in dir(collections): print x,collections.x.__doc__ ==================
>>> def dd(o): zx=dir (o) for x in zx: ax=o+x print ax.__doc__ >>> dd(collections) ================ def dd(o): zx=dir (o) for x in zx: ax=str(o)+x print ax.__doc__ >>> >>> dd(collections) """ Above snippets of code generates str.__doc__ for every iteration. Please someone tell me how I can retrive all the docstrings ina module thanks in advance Prasad
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor