If you mean the Python API in Blender, this script should do it:
http://www.blenderbuch.de/tutor/python2 ... 2_eng.htmlThe first script on the page (docstrings.py) is the one. However, I've had to mess a little with it to get it to work at all (it crashes blender), and then it chokes after a certain part . Hmm, I'm not so keen on the whole stdout stuff (I really am a file.write man )

(NB about the webpage: at the bottom are the links to the tgz and zip with all the files for the page - should include docstrings).