Mega Code Archive

 
Categories / Python / Development
 

Specify Documentation Strings during function definition

# Here is an example of a multi-line docstring: def my_function():      """Do nothing, but document it.        No, really, it doesn't do anything.      """      pass   print my_function.__doc__