Specify Documentation Strings during function definition : Doc String : Development : Python examples (example source code) Organized by topic

C++
PHP
Python


Python  »  Development   » [  Doc String  ]  Screenshots 
 



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__


           
       
Related examples in the same category
1.  Document string
2.  Why Use str on a doc string? Why Use str on a doc string?
3.  api helper: Print methods and doc strings api helper: Print methods and doc strings
4.  Sample Use of api helper for list Sample Use of api helper for list
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.