There is a wonderful feature in Python, documentation strings, also known as DocStrings. It can be used to add descriptive text to our modules, classes, and functions, making the program easy to read and understand. More importantly, these descriptive text information can be output through Python's own standard methods. Here are some examples.
'''This is My own Module Date:2011-09-07 Author:Chris Mao This is description information''' class TestClass: '''This is TestClass' DocStrings''' def func1(): '''this is func1's DocStrings''' pass def func2(): '''this is func2''' print "this is func2" print func2.__doc__