Python has a very helpful feature called help(). Here is a sample ...
# list all the modules Python currently knows about ...
help("modules")
# now pick a module from that list you want to know
# more about ...
# to get help about module calendar ...
help("calendar")
# dito for the math module
help("math")
# file stuff ...
help("file")
# down to method/function level ...
help("os.read")
That means you can use help in the program code, or at the interactive page >>> prompt. Not many other languages offer this handiness!
If you want other people to read and help with your code, you might want to follow the Python style guide, written by GVR himself:
http://www.python.org/peps/pep-0008.html Last edited by vegaseat; Jun 5th, 2007 at 1:43 pm. Reason: code tags updated
May 'the Google' be with you!