[Tutor] How do I do this
Girish Gajwani
girishg@india.ti.com
Sun, 09 Sep 2001 01:59:01 +0530
Hi All,
I was trying to get the documentation of all functions in a
particular module, as follows:
############################################
#! /usr/bin/env python
"""Documentation comes like this.
this will be the documentation for this file(module)
"""
import sys, os, string, getopt
def main():
for i in dir(getopt):
print i, getopt.i.__doc__ # assuming i will be
substituted for each of the
# modules, functions and we
will get __doc__ for
# each of these
main()
############################################
This does not work. How do I do this?
Thanks & Best regards
Girish